summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/files/js/filelist.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 0dbf4f938bb..d5b30d62998 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -1758,7 +1758,9 @@
updateRow: function($tr, fileInfo, options) {
this.files.splice($tr.index(), 1);
$tr.remove();
- $tr = this.add(fileInfo, _.extend({updateSummary: false, silent: true}, options));
+ options = _.extend({silent: true}, options);
+ options = _.extend(options, {updateSummary: false});
+ $tr = this.add(fileInfo, options);
this.$fileList.trigger($.Event('fileActionsReady', {fileList: this, $files: $tr}));
return $tr;
},