diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index 4dd5f1e96..6d2cf84b5 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -3590,6 +3590,7 @@ define([ } return void UI.warn(Messages.autostore_error); } + $(document).trigger('cpPadStored'); delete autoStoreModal[priv.channel]; modal.delete(); UIElements.displayCrowdfunding(common); diff --git a/www/file/inner.js b/www/file/inner.js index 1cbe3e8c3..361c59356 100644 --- a/www/file/inner.js +++ b/www/file/inner.js @@ -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); });