summaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-04-26 23:05:08 -0300
committerGitHub <noreply@github.com>2017-04-26 23:05:08 -0300
commit10ec3fda8344b8f0028f397312c31dbdee85d3d5 (patch)
tree156cdfb6d83c607602e8b71dc5a47a5e65391e5d /apps/files/js
parent01705b1b6a500199796c1d289ae8dd7363c27383 (diff)
parent3f36548a6d7c67857bf8fed1de7a81828e4c14a3 (diff)
downloadnextcloud-server-10ec3fda8344b8f0028f397312c31dbdee85d3d5.tar.gz
nextcloud-server-10ec3fda8344b8f0028f397312c31dbdee85d3d5.zip
Merge pull request #4519 from nextcloud/downstream-27703
Reload file list when leaving hidden state
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/filelist.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 0fcb10a21ee..6b5b5a2daef 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -327,6 +327,7 @@
this.$fileList.on('click','td.filename>a.name, td.filesize, td.date', _.bind(this._onClickFile, this));
this.$fileList.on('change', 'td.filename>.selectCheckBox', _.bind(this._onClickFileCheckbox, this));
+ this.$el.on('show', _.bind(this._onShow, this));
this.$el.on('urlChanged', _.bind(this._onUrlChanged, this));
this.$el.find('.select-all').click(_.bind(this._onClickSelectAll, this));
this.$el.find('.download').click(_.bind(this._onClickDownloadSelected, this));
@@ -553,6 +554,13 @@
},
/**
+ * Event handler when leaving previously hidden state
+ */
+ _onShow: function(e) {
+ this.reload();
+ },
+
+ /**
* Event handler for when the URL changed
*/
_onUrlChanged: function(e) {