Skip to content
Snippets Groups Projects
Commit 4998faf3 authored by Vincent Petry's avatar Vincent Petry
Browse files

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.
parent 01344481
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment