From 61db16321f1bf7ceea22672b33cd165fc3620a4a Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Tue, 29 Apr 2014 18:49:11 +0200 Subject: Clear selection on reload (when changing sort) --- apps/files/js/filelist.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'apps/files/js') diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 11d33543424..2d3e96fbd28 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -714,8 +714,6 @@ window.FileList = { previousDir: currentDir } )); - this._selectedFiles = {}; - this._selectionSummary.clear(); this.reload(); }, linkTo: function(dir) { @@ -776,6 +774,9 @@ window.FileList = { * @brief Reloads the file list using ajax call */ reload: function() { + this._selectedFiles = {}; + this._selectionSummary.clear(); + this.$el.find('#select_all').prop('checked', false); FileList.showMask(); if (FileList._reloadCall) { FileList._reloadCall.abort(); -- cgit v1.2.3