summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2018-08-15 15:20:41 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2018-08-23 00:31:10 +0200
commite1e35b42dec97c44012ac6da924008d4f8d3e4e7 (patch)
tree1d838d3c023b5df7b95cc48d11fb63f6bd2eee15 /apps
parent5bc7af25106de5fce6d9fa9ed22571b4673eb91e (diff)
downloadnextcloud-server-e1e35b42dec97c44012ac6da924008d4f8d3e4e7.tar.gz
nextcloud-server-e1e35b42dec97c44012ac6da924008d4f8d3e4e7.zip
remove unexecutable code
OCA.Sharing.SharedFileInfo was never defined and that stopped execution. Interestingly, FF never showed me an error. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/js/sharedfilelist.js19
1 files changed, 1 insertions, 18 deletions
diff --git a/apps/files_sharing/js/sharedfilelist.js b/apps/files_sharing/js/sharedfilelist.js
index ad818d91413..1ef015cccbf 100644
--- a/apps/files_sharing/js/sharedfilelist.js
+++ b/apps/files_sharing/js/sharedfilelist.js
@@ -154,24 +154,7 @@
},
updateRow: function($tr, fileInfo, options) {
- if(!fileInfo instanceof OCA.Sharing.SharedFileInfo) {
- // recycle SharedFileInfo values if something tries to overwrite it
- var oldModel = this.getModelForFile($tr);
-
- if(_.isUndefined(fileInfo.recipientData) && oldModel.recipientData) {
- fileInfo.recipientData = oldModel.recipientData;
- }
- if(_.isUndefined(fileInfo.recipients) && oldModel.recipientData) {
- fileInfo.recipientData = oldModel.recipientData;
- }
- if(_.isUndefined(fileInfo.shares) && oldModel.shares) {
- fileInfo.shares = oldModel.shares;
- }
- if(_.isUndefined(fileInfo.shareOwner) && oldModel.shareOwner) {
- fileInfo.shareOwner = oldModel.shareOwner;
- }
- }
- OCA.Files.FileList.prototype._createRow.updateRow(this, arguments);
+ // no-op, suppress re-rendering
},
reload: function() {