Fix owners not set properly when storing a file the first time

This commit is contained in:
yflory
2019-10-31 14:00:04 +01:00
parent c1ffb1e94e
commit b0f5254942
2 changed files with 7 additions and 3 deletions

View File

@@ -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);
});