Fix owners not set properly when storing a file the first time
This commit is contained in:
parent
c1ffb1e94e
commit
b0f5254942
@ -3590,6 +3590,7 @@ define([
|
|||||||
}
|
}
|
||||||
return void UI.warn(Messages.autostore_error);
|
return void UI.warn(Messages.autostore_error);
|
||||||
}
|
}
|
||||||
|
$(document).trigger('cpPadStored');
|
||||||
delete autoStoreModal[priv.channel];
|
delete autoStoreModal[priv.channel];
|
||||||
modal.delete();
|
modal.delete();
|
||||||
UIElements.displayCrowdfunding(common);
|
UIElements.displayCrowdfunding(common);
|
||||||
|
|||||||
@ -106,9 +106,12 @@ define([
|
|||||||
// Add pad attributes when the file is saved in the drive
|
// Add pad attributes when the file is saved in the drive
|
||||||
Title.onTitleChange(function () {
|
Title.onTitleChange(function () {
|
||||||
var owners = metadata.owners;
|
var owners = metadata.owners;
|
||||||
if (owners) {
|
if (owners) { common.setPadAttribute('owners', 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);
|
common.setPadAttribute('fileType', metadata.type);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user