diff --git a/app/templates/admin/inc_record-form2.tpl.js b/app/templates/admin/inc_record-form2.tpl.js index aa17625..c8c6cda 100644 --- a/app/templates/admin/inc_record-form2.tpl.js +++ b/app/templates/admin/inc_record-form2.tpl.js @@ -675,6 +675,8 @@ $( document ).ready(function() { coverImageControl.id = `unit-${index}-cover-image-control-id`; coverImageSubmit.onclick = (e) => { e.preventDefault(); + coverImageSubmit.setAttribute('disabled', ''); + coverImageSubmit.textContent = "{{ _('上傳中') }}..."; if (coverImageFile.files.length > 0) { let file = coverImageFile.files[0]; diff --git a/app/templates/admin/inc_record_template-modal.tpl.html b/app/templates/admin/inc_record_template-modal.tpl.html index ec84a46..dcc633e 100644 --- a/app/templates/admin/inc_record_template-modal.tpl.html +++ b/app/templates/admin/inc_record_template-modal.tpl.html @@ -129,7 +129,7 @@