From 86735c6b5a6d46f1e66ae170e498446af786b98e Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Sat, 9 Jan 2016 22:07:34 +0100 Subject: [PATCH] Updating a file should not update the summary --- apps/files/js/filelist.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 0dbf4f938b..d5b30d6299 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; },