diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-02-24 00:18:33 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-02-24 00:18:33 +0900 |
| commit | f0776a80fc854bb8fd4dd86d9a6310468e8f5d2d (patch) | |
| tree | ebb74c30b05ad2e22ba3829504001e9f09a30550 /src/web/app/mobile | |
| parent | [API] Fix bug (diff) | |
| download | misskey-f0776a80fc854bb8fd4dd86d9a6310468e8f5d2d.tar.gz misskey-f0776a80fc854bb8fd4dd86d9a6310468e8f5d2d.tar.bz2 misskey-f0776a80fc854bb8fd4dd86d9a6310468e8f5d2d.zip | |
[Client] Fix bug
Diffstat (limited to 'src/web/app/mobile')
| -rw-r--r-- | src/web/app/mobile/tags/drive.tag | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/web/app/mobile/tags/drive.tag b/src/web/app/mobile/tags/drive.tag index 051482ae19..e3b41ab641 100644 --- a/src/web/app/mobile/tags/drive.tag +++ b/src/web/app/mobile/tags/drive.tag @@ -277,6 +277,11 @@ this.update(); }; + this.appendFile = file => this.addFile(file); + this.appendFolder = file => this.addFolder(file); + this.prependFile = file => this.addFile(file, true); + this.prependFolder = file => this.addFolder(file, true); + this.goRoot = () => { if (this.folder || this.file) { this.update({ @@ -335,8 +340,8 @@ let flag = false; const complete = () => { if (flag) { - fetchedFolders.forEach(this.addFolder); - fetchedFiles.forEach(this.addFile); + fetchedFolders.forEach(this.appendFolder); + fetchedFiles.forEach(this.appendFile); this.update({ fetching: false }); |