aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-01-11 11:22:09 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-01-11 11:22:09 +0100
commit2ee39cf4cfd1ad946ac93af2d93bd8f75f273100 (patch)
tree2f12facf32eebbb2ce7fcd93f363038db9b266fe /apps/files/js
parent171b279753d704bfa1c5fe2591963612289a54b1 (diff)
parent665d7b25b04b8f2be28957bd0d87e6ef554db973 (diff)
downloadnextcloud-server-2ee39cf4cfd1ad946ac93af2d93bd8f75f273100.tar.gz
nextcloud-server-2ee39cf4cfd1ad946ac93af2d93bd8f75f273100.zip
Merge pull request #21573 from owncloud/fix_21535_21534
Do not increase filecount in web on file update
Diffstat (limited to 'apps/files/js')
-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;
},