Skip to content

Commit

Permalink
m
Browse files Browse the repository at this point in the history
  • Loading branch information
moogoo78 committed Nov 7, 2024
1 parent 4445bc8 commit 8db6ca7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/templates/admin/inc_record-form2.tpl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand Down
2 changes: 1 addition & 1 deletion app/templates/admin/inc_record_template-modal.tpl.html
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ <h2 class="uk-modal-title unit-modal-title">{{ _('標本') }} <span class="uk-te
<input type="file" aria-label="Custom controls" id="" data-unit="cover-image-file">
<input class="uk-input uk-form-width-medium" type="text" placeholder="{{ _('選擇檔案') }}" aria-label="Custom controls" id="" data-unit="cover-image-control" disabled>
</div>
<button class="uk-button uk-button-default" id="" data-unit="cover-image-submit">{{ _('送出') }}</button> {#<button class="uk-button uk-button-default" type="button" aria-label="Toggle Dropdown"><span uk-icon="icon: trash"></span></button>#}
<button class="uk-button uk-button-default" id="" data-unit="cover-image-submit">{{ _('上傳') }}</button> {#<button class="uk-button uk-button-default" type="button" aria-label="Toggle Dropdown"><span uk-icon="icon: trash"></span></button>#}
</div>
{{ heading( _('典藏狀態') )}}
{{ widget('kind_of_unit', _('部件類別'), '', '1-3@s', 'select', data={'unit': 'kind_of_unit'}) }}
Expand Down

0 comments on commit 8db6ca7

Please sign in to comment.