diff options
author | Vincent Petry <pvince81@owncloud.com> | 2013-11-08 13:15:48 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2013-11-08 13:16:28 +0100 |
commit | 4998faf343cbe89ee25ad1567dc1e8544fdafc9e (patch) | |
tree | ef7aaebe533267741743790dbccef56caaf65d82 /apps/files | |
parent | 013444813e106dcc5ed45cb709696d5d6e24e89a (diff) | |
download | nextcloud-server-4998faf343cbe89ee25ad1567dc1e8544fdafc9e.tar.gz nextcloud-server-4998faf343cbe89ee25ad1567dc1e8544fdafc9e.zip |
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.
Diffstat (limited to 'apps/files')
-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) { |