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 // legacy stuff
this.$el.find('#dir').val(targetDir); this.$el.find('#dir').val(targetDir);
if (changeUrl !== false) { var params = {
var params = { dir: targetDir,
dir: targetDir, previousDir: previousDir
previousDir: previousDir };
}; if (fileId) {
if (fileId) { params.fileId = fileId;
params.fileId = fileId;
}
this.$el.trigger(jQuery.Event('changeDirectory', params));
} }
this.$el.trigger(jQuery.Event('changeDirectory', params));
this.breadcrumb.setDirectory(this.getCurrentDirectory()); this.breadcrumb.setDirectory(this.getCurrentDirectory());
}, },
/** /**