diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-12-09 02:11:48 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-12-09 02:11:48 +0900 |
| commit | 23e4674966f87a2292f58c2c0a7fb0e8bbb7dcf9 (patch) | |
| tree | 404da087fc02d38f1eebc5218655ab4d7e50808e /src | |
| parent | v3292 (diff) | |
| download | sharkey-23e4674966f87a2292f58c2c0a7fb0e8bbb7dcf9.tar.gz sharkey-23e4674966f87a2292f58c2c0a7fb0e8bbb7dcf9.tar.bz2 sharkey-23e4674966f87a2292f58c2c0a7fb0e8bbb7dcf9.zip | |
Fix bug
Diffstat (limited to 'src')
| -rw-r--r-- | src/web/app/mobile/tags/drive.tag | 5 | ||||
| -rw-r--r-- | src/web/app/mobile/tags/drive/file.tag | 3 | ||||
| -rw-r--r-- | src/web/app/mobile/tags/drive/folder.tag | 5 |
3 files changed, 9 insertions, 4 deletions
diff --git a/src/web/app/mobile/tags/drive.tag b/src/web/app/mobile/tags/drive.tag index a72c8d51c8..41dbfddae9 100644 --- a/src/web/app/mobile/tags/drive.tag +++ b/src/web/app/mobile/tags/drive.tag @@ -248,6 +248,7 @@ }; this.move = ev => { + ev.preventDefault(); this.cd(ev.item.folder); return false; }; @@ -333,7 +334,9 @@ this.prependFile = file => this.addFile(file, true); this.prependFolder = file => this.addFolder(file, true); - this.goRoot = () => { + this.goRoot = ev => { + ev.preventDefault(); + if (this.folder || this.file) { this.update({ file: null, diff --git a/src/web/app/mobile/tags/drive/file.tag b/src/web/app/mobile/tags/drive/file.tag index 0b3506a430..196dd1141e 100644 --- a/src/web/app/mobile/tags/drive/file.tag +++ b/src/web/app/mobile/tags/drive/file.tag @@ -138,7 +138,8 @@ this.isSelected = selections.some(f => f.id == this.file.id); }); - this.onclick = () => { + this.onclick = ev => { + ev.preventDefault(); this.browser.chooseFile(this.file); return false; }; diff --git a/src/web/app/mobile/tags/drive/folder.tag b/src/web/app/mobile/tags/drive/folder.tag index 785847a9ca..da55cf474e 100644 --- a/src/web/app/mobile/tags/drive/folder.tag +++ b/src/web/app/mobile/tags/drive/folder.tag @@ -1,4 +1,4 @@ -<mk-drive-folder onclick={ onclick }> +<mk-drive-folder> <a onclick={ onclick } href="/i/drive/folder/{ folder.id }"> <div class="container"> <p class="name">%fa:folder%{ folder.name }</p>%fa:angle-right% @@ -44,7 +44,8 @@ this.browser = this.parent; this.folder = this.opts.folder; - this.onclick = () => { + this.onclick = ev => { + ev.preventDefault(); this.browser.cd(this.folder); return false; }; |