Compare commits

...

1 Commits

Author SHA1 Message Date
Julius Härtl 726d2d632a
Always emit a changeDirectory jQuery event
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-01-24 12:36:40 +01:00
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());
},
/**