summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-02-17 17:45:33 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-02-17 17:45:33 +0900
commit2943cf4899024e9f2ac6d38abe39d09784d8754b (patch)
tree5f0d9cc5110009fc5bda2973593927fb166230dd /src
parent[Client:Mobile] Update desogn (diff)
downloadmisskey-2943cf4899024e9f2ac6d38abe39d09784d8754b.tar.gz
misskey-2943cf4899024e9f2ac6d38abe39d09784d8754b.tar.bz2
misskey-2943cf4899024e9f2ac6d38abe39d09784d8754b.zip
[Client] 良い感じにした
Diffstat (limited to 'src')
-rw-r--r--src/web/app/mobile/tags/page/drive.tag18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/web/app/mobile/tags/page/drive.tag b/src/web/app/mobile/tags/page/drive.tag
index beb7cf77a4..7b27b3ae2a 100644
--- a/src/web/app/mobile/tags/page/drive.tag
+++ b/src/web/app/mobile/tags/page/drive.tag
@@ -25,27 +25,31 @@
@Progress.done!
@refs.ui.refs.browser.on \move-root ~>
- @ui.trigger \title '<i class="fa fa-cloud"></i>ドライブ'
-
# Rewrite URL
history.push-state null null '/i/drive'
+ document.title = 'Misskey Drive'
+ @ui.trigger \title '<i class="fa fa-cloud"></i>ドライブ'
+
@refs.ui.refs.browser.on \open-folder (folder, silent) ~>
+ if !silent
+ # Rewrite URL
+ history.push-state null null '/i/drive/folder/' + folder.id
+
+ document.title = folder.name + ' | Misskey Drive'
# TODO: escape html characters in folder.name
@ui.trigger \title '<i class="fa fa-folder-open"></i>' + folder.name
+ @refs.ui.refs.browser.on \open-file (file, silent) ~>
if !silent
# Rewrite URL
- history.push-state null null '/i/drive/folder/' + folder.id
+ history.push-state null null '/i/drive/file/' + file.id
- @refs.ui.refs.browser.on \open-file (file, silent) ~>
+ document.title = file.name + ' | Misskey Drive'
# TODO: escape html characters in file.name
@ui.trigger \title '<mk-file-type-icon class="icon"></mk-file-type-icon>' + file.name
riot.mount \mk-file-type-icon do
type: file.type
- if !silent
- # Rewrite URL
- history.push-state null null '/i/drive/file/' + file.id
</script>
</mk-drive-page>