Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-11-20 16:44:20 +0300
committerJulius Härtl <jus@bitgrid.net>2018-11-22 16:03:23 +0300
commita90b4bcc324790a24d2fa9de04ac6ecd90e99cf4 (patch)
treef8c002d8844716c8c74a8381152b2a1c5cb00c15 /apps/files/js/navigation.js
parentad1a026e547d2092783e545f854ea34065d0bdb2 (diff)
Do not switch to root folder if filelist is already shown
Navigating to the root folder is already handled by OCA.Files.Navigation.setActiveItem in case the view doesn't change. Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/files/js/navigation.js')
-rw-r--r--apps/files/js/navigation.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/files/js/navigation.js b/apps/files/js/navigation.js
index b3648fedc6c..02a0af2b369 100644
--- a/apps/files/js/navigation.js
+++ b/apps/files/js/navigation.js
@@ -154,7 +154,12 @@
this.$currentContent = $('#app-content-' + (typeof itemView === 'string' && itemView !== '' ? itemView : itemId));
this.$currentContent.removeClass('hidden');
if (!options || !options.silent) {
- this.$currentContent.trigger(jQuery.Event('show'));
+ this.$currentContent.trigger(jQuery.Event('show', {
+ itemId: itemId,
+ previousItemId: oldItemId,
+ dir: itemDir,
+ view: itemView
+ }));
this.$el.trigger(
new $.Event('itemChanged', {
itemId: itemId,