summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo⭐️ <Syuilotan@yahoo.co.jp>2017-02-17 18:00:13 +0900
committersyuilo⭐️ <Syuilotan@yahoo.co.jp>2017-02-17 18:00:13 +0900
commit3e00b130391a894b2d1b9a72b247ea00481b23da (patch)
treef38fe4a488e2290af35f8730bdec7f99cbe548c0 /src
parent[Client] 良い感じにした (diff)
downloadmisskey-3e00b130391a894b2d1b9a72b247ea00481b23da.tar.gz
misskey-3e00b130391a894b2d1b9a72b247ea00481b23da.tar.bz2
misskey-3e00b130391a894b2d1b9a72b247ea00481b23da.zip
[Client:Mobile] ⭐️🍮⭐️
Diffstat (limited to 'src')
-rw-r--r--src/web/app/mobile/tags/page/drive.tag18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/web/app/mobile/tags/page/drive.tag b/src/web/app/mobile/tags/page/drive.tag
index 7b27b3ae2a..26eb400a03 100644
--- a/src/web/app/mobile/tags/page/drive.tag
+++ b/src/web/app/mobile/tags/page/drive.tag
@@ -25,27 +25,33 @@
@Progress.done!
@refs.ui.refs.browser.on \move-root ~>
+ title = 'Misskey Drive'
+
# Rewrite URL
- history.push-state null null '/i/drive'
+ history.push-state null, title, '/i/drive'
- document.title = 'Misskey Drive'
+ document.title = title
@ui.trigger \title '<i class="fa fa-cloud"></i>ドライブ'
@refs.ui.refs.browser.on \open-folder (folder, silent) ~>
+ title = folder.name + ' | Misskey Drive'
+
if !silent
# Rewrite URL
- history.push-state null null '/i/drive/folder/' + folder.id
+ history.push-state null, title, '/i/drive/folder/' + folder.id
- document.title = folder.name + ' | Misskey Drive'
+ document.title = title
# 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) ~>
+ title = file.name + ' | Misskey Drive'
+
if !silent
# Rewrite URL
- history.push-state null null '/i/drive/file/' + file.id
+ history.push-state null, title, '/i/drive/file/' + file.id
- document.title = file.name + ' | Misskey Drive'
+ document.title = title
# 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