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>
This commit is contained in:
parent
5bc7af2510
commit
e1e35b42de
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue