summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2016-04-13 13:40:14 +0200
committerChristoph Wurst <ChristophWurst@users.noreply.github.com>2016-04-13 13:40:14 +0200
commitce9729e460595e9e3d9d8ca3b19d03a36eaf7620 (patch)
treef7a0852ef17c7fd21a600aa059ec12ed0742ea54
parent009f96cb83b68553c73892bcce37c689d0e6d083 (diff)
parent4d02233faad72a6063189f8dcf9772c7581d751d (diff)
downloadnextcloud-server-ce9729e460595e9e3d9d8ca3b19d03a36eaf7620.tar.gz
nextcloud-server-ce9729e460595e9e3d9d8ca3b19d03a36eaf7620.zip
Merge pull request #23966 from owncloud/restore-file-selection
restore selection after re-rendering file rows
-rw-r--r--apps/files/js/filelist.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 71af4a21b9b..c8f818701a9 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -390,6 +390,11 @@
model.toJSON(),
{updateSummary: true, silent: false, animate: true}
);
+
+ // restore selection state
+ var selected = !!self._selectedFiles[$tr.data('id')];
+ self._selectFileEl($tr, selected);
+
$tr.toggleClass('highlighted', highlightState);
});
model.on('busy', function(model, state) {