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.
This commit is contained in:
Vincent Petry 2013-11-08 13:15:48 +01:00
parent 013444813e
commit 4998faf343
1 changed files with 6 additions and 0 deletions

View File

@ -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) {