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:
parent
013444813e
commit
4998faf343
|
@ -170,6 +170,12 @@ var FileList={
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
FileList.setCurrentDir(targetDir, changeUrl);
|
FileList.setCurrentDir(targetDir, changeUrl);
|
||||||
|
$('#fileList').trigger(
|
||||||
|
jQuery.Event('changeDirectory', {
|
||||||
|
dir: targetDir,
|
||||||
|
previousDir: currentDir
|
||||||
|
}
|
||||||
|
));
|
||||||
FileList.reload();
|
FileList.reload();
|
||||||
},
|
},
|
||||||
linkTo: function(dir) {
|
linkTo: function(dir) {
|
||||||
|
|
Loading…
Reference in New Issue