summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2016-04-13 11:20:26 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2016-04-13 11:20:26 +0200
commit4d02233faad72a6063189f8dcf9772c7581d751d (patch)
tree09aed663b177356b4c913fdb268f3746baa12247 /apps
parent838e9e312673c2fb30796b07b6fa2542ee8f554e (diff)
downloadnextcloud-server-4d02233faad72a6063189f8dcf9772c7581d751d.tar.gz
nextcloud-server-4d02233faad72a6063189f8dcf9772c7581d751d.zip
restore selection after re-rendering file rows
Diffstat (limited to 'apps')
-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) {