summaryrefslogtreecommitdiff
path: root/src/web/app/mobile
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-02-22 02:05:44 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-02-22 02:05:44 +0900
commitf0b071893296e323df2ed2bdb06dbe794d72258d (patch)
tree321f492a7ad024e568786b831dfc864adeb77aea /src/web/app/mobile
parentFix (diff)
downloadmisskey-f0b071893296e323df2ed2bdb06dbe794d72258d.tar.gz
misskey-f0b071893296e323df2ed2bdb06dbe794d72258d.tar.bz2
misskey-f0b071893296e323df2ed2bdb06dbe794d72258d.zip
Fix bugs
Diffstat (limited to 'src/web/app/mobile')
-rw-r--r--src/web/app/mobile/tags/drive.tag8
-rw-r--r--src/web/app/mobile/tags/drive/folder.tag2
-rw-r--r--src/web/app/mobile/tags/post-form.tag4
-rw-r--r--src/web/app/mobile/tags/timeline-post.tag2
4 files changed, 8 insertions, 8 deletions
diff --git a/src/web/app/mobile/tags/drive.tag b/src/web/app/mobile/tags/drive.tag
index 707ec9478e..35b9b65417 100644
--- a/src/web/app/mobile/tags/drive.tag
+++ b/src/web/app/mobile/tags/drive.tag
@@ -198,7 +198,7 @@
};
this.move = ev => {
- this.move(ev.item.folder);
+ this.cd(ev.item.folder);
};
this.cd = (target, silent = false) => {
@@ -333,10 +333,10 @@
});
let flag = false;
- complete = () => {
+ const complete = () => {
if (flag) {
- fetchedFolders.forEach(folder => this.addFolder);
- fetchedFiles.forEach(file => this.addFile);
+ fetchedFolders.forEach(this.addFolder);
+ fetchedFiles.forEach(this.addFile);
this.update({
fetching: false
});
diff --git a/src/web/app/mobile/tags/drive/folder.tag b/src/web/app/mobile/tags/drive/folder.tag
index 093e742929..27e86662c7 100644
--- a/src/web/app/mobile/tags/drive/folder.tag
+++ b/src/web/app/mobile/tags/drive/folder.tag
@@ -41,7 +41,7 @@
this.folder = this.opts.folder;
this.onclick = () => {
- this.browser.move(this.folder);
+ this.browser.cd(this.folder);
};
</script>
</mk-drive-folder>
diff --git a/src/web/app/mobile/tags/post-form.tag b/src/web/app/mobile/tags/post-form.tag
index 397475e3f5..353db01540 100644
--- a/src/web/app/mobile/tags/post-form.tag
+++ b/src/web/app/mobile/tags/post-form.tag
@@ -182,7 +182,7 @@
</style>
<script>
- getCat = require('../../common/scripts/get-cat');
+ const getCat = require('../../common/scripts/get-cat');
this.mixin('api');
@@ -204,7 +204,7 @@
});
this.onkeydown = e => {
- if ((e.which == 10 || e.which == 13) && (e.ctrlKey || e.meta-key)) this.post();
+ if ((e.which == 10 || e.which == 13) && (e.ctrlKey || e.metaKey)) this.post();
};
this.onpaste = e => {
diff --git a/src/web/app/mobile/tags/timeline-post.tag b/src/web/app/mobile/tags/timeline-post.tag
index 0a6db9a92d..8662eadb8c 100644
--- a/src/web/app/mobile/tags/timeline-post.tag
+++ b/src/web/app/mobile/tags/timeline-post.tag
@@ -298,7 +298,7 @@
this.mixin('api');
this.mixin('text');
this.mixin('get-post-summary');
- this.mixin('openPostForm');
+ this.mixin('open-post-form');
this.post = this.opts.post;
this.isRepost = this.post.repost != null && this.post.text == null;