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:
authorVincent Petry <pvince81@owncloud.com>2013-11-08 16:15:48 +0400
committerVincent Petry <pvince81@owncloud.com>2013-11-08 16:16:28 +0400
commit4998faf343cbe89ee25ad1567dc1e8544fdafc9e (patch)
treeef7aaebe533267741743790dbccef56caaf65d82
parent013444813e106dcc5ed45cb709696d5d6e24e89a (diff)
Added JS event for when the user changes the directory
This enables apps to detect directory changes which might be caused by the user using the browser back button.
-rw-r--r--apps/files/js/filelist.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 24a7fd2ee47..0a94657c2d8 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -170,6 +170,12 @@ var FileList={
return;
}
FileList.setCurrentDir(targetDir, changeUrl);
+ $('#fileList').trigger(
+ jQuery.Event('changeDirectory', {
+ dir: targetDir,
+ previousDir: currentDir
+ }
+ ));
FileList.reload();
},
linkTo: function(dir) {