Merge pull request #10816 from nextcloud/backport/10700+10815/stable13
[stable13] remove unexecutable code
This commit is contained in:
commit
893cccba68
|
@ -154,24 +154,8 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
updateRow: function($tr, fileInfo, options) {
|
updateRow: function($tr, fileInfo, options) {
|
||||||
if(!fileInfo instanceof OCA.Sharing.SharedFileInfo) {
|
// no-op, suppress re-rendering
|
||||||
// recycle SharedFileInfo values if something tries to overwrite it
|
return $tr;
|
||||||
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);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
reload: function() {
|
reload: function() {
|
||||||
|
|
Loading…
Reference in New Issue