Always emit a changeDirectory jQuery event
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
a3780714fe
commit
726d2d632a
|
@ -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());
|
||||
},
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue