From 58259c1ae5b97e810f3b49c597714362c1121d76 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 17 Feb 2017 17:45:33 +0900 Subject: [PATCH] =?UTF-8?q?[Client]=20=E8=89=AF=E3=81=84=E6=84=9F=E3=81=98?= =?UTF-8?q?=E3=81=AB=E3=81=97=E3=81=9F?= 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, 12 insertions(+), 8 deletions(-) diff --git a/src/web/app/mobile/tags/page/drive.tag b/src/web/app/mobile/tags/page/drive.tag index beb7cf77a..7b27b3ae2 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 'ドライブ' - # Rewrite URL history.push-state null null '/i/drive' - @refs.ui.refs.browser.on \open-folder (folder, silent) ~> - # TODO: escape html characters in folder.name - @ui.trigger \title '' + folder.name + document.title = 'Misskey Drive' + @ui.trigger \title 'ドライブ' + @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 '' + folder.name + @refs.ui.refs.browser.on \open-file (file, silent) ~> + if !silent + # Rewrite URL + history.push-state null null '/i/drive/file/' + file.id + + document.title = file.name + ' | Misskey Drive' # TODO: escape html characters in file.name @ui.trigger \title '' + 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