diff options
author | Vincent Petry <pvince81@owncloud.com> | 2013-11-08 16:15:48 +0400 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2013-11-08 16:16:28 +0400 |
commit | 4998faf343cbe89ee25ad1567dc1e8544fdafc9e (patch) | |
tree | ef7aaebe533267741743790dbccef56caaf65d82 | |
parent | 013444813e106dcc5ed45cb709696d5d6e24e89a (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.js | 6 |
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) { |