From 3e00b130391a894b2d1b9a72b247ea00481b23da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?syuilo=E2=AD=90=EF=B8=8F?= Date: Fri, 17 Feb 2017 18:00:13 +0900 Subject: [PATCH] =?UTF-8?q?[Client:Mobile]=20=E2=AD=90=EF=B8=8F?= =?UTF-8?q?=F0=9F=8D=AE=E2=AD=90=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/web/app/mobile/tags/page/drive.tag | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 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 ~> - # Rewrite URL - history.push-state null null '/i/drive' + title = 'Misskey Drive' - document.title = 'Misskey Drive' + # Rewrite URL + history.push-state null, title, '/i/drive' + + document.title = title @ui.trigger \title 'ドライブ' @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 '' + 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 '' + file.name riot.mount \mk-file-type-icon do