Browse Source

Fix changeDirectory event propagation when the URL does not change

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Christoph Wurst 5 years ago
parent
commit
d359e83d0b
1 changed files with 8 additions and 9 deletions
  1. 8 9
      apps/files/js/filelist.js

+ 8 - 9
apps/files/js/filelist.js

@@ -1850,16 +1850,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());
 		},
 		/**