summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMorris Jobke <morris.jobke@gmail.com>2013-11-11 06:22:44 -0800
committerMorris Jobke <morris.jobke@gmail.com>2013-11-11 06:22:44 -0800
commit43230f11f66b144affee3c753dd8bb86c40a87f0 (patch)
tree29f3f289791c000245f63c28216c7bb403f224dd /apps
parent55331479cdd607089ad898676bedc84ea66cafce (diff)
parent4998faf343cbe89ee25ad1567dc1e8544fdafc9e (diff)
downloadnextcloud-server-43230f11f66b144affee3c753dd8bb86c40a87f0.tar.gz
nextcloud-server-43230f11f66b144affee3c753dd8bb86c40a87f0.zip
Merge pull request #5769 from owncloud/files-changedirjsevent
Added JS event for when the user changes the directory
Diffstat (limited to 'apps')
-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) {