Always emit a changeDirectory jQuery event

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2020-01-24 12:36:40 +01:00
parent a3780714fe
commit 726d2d632a
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 8 additions and 9 deletions

View File

@ -1935,16 +1935,15 @@
// legacy stuff
this.$el.find('#dir').val(targetDir);
if (changeUrl !== false) {
var params = {
dir: targetDir,
previousDir: previousDir
};
if (fileId) {
params.fileId = fileId;
}
this.$el.trigger(jQuery.Event('changeDirectory', params));
var params = {
dir: targetDir,
previousDir: previousDir
};
if (fileId) {
params.fileId = fileId;
}
this.$el.trigger(jQuery.Event('changeDirectory', params));
this.breadcrumb.setDirectory(this.getCurrentDirectory());
},
/**