Fix owners not set properly when storing a file the first time
This commit is contained in:
@@ -106,9 +106,12 @@ define([
|
||||
// Add pad attributes when the file is saved in the drive
|
||||
Title.onTitleChange(function () {
|
||||
var owners = metadata.owners;
|
||||
if (owners) {
|
||||
common.setPadAttribute('owners', owners);
|
||||
}
|
||||
if (owners) { common.setPadAttribute('owners', owners); }
|
||||
common.setPadAttribute('fileType', metadata.type);
|
||||
});
|
||||
$(document).on('cpPadStored', function () {
|
||||
var owners = metadata.owners;
|
||||
if (owners) { common.setPadAttribute('owners', owners); }
|
||||
common.setPadAttribute('fileType', metadata.type);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user