fix(ui): загрузка и общий контракт сравнения (refs #8 #7)
deploy-preland / deploy zoomstage.online (push) Successful in 32s
deploy-preland / deploy zoomstage.online (push) Successful in 32s
This commit is contained in:
1 parent
7eaf1c12b0
commit
f2e6877013
5 files changed
+38
-13
No files matched your search
+2
-2
@@ -105,7 +105,7 @@ $basePickerAccept = 'image/jpeg,image/png,image/gif,image/webp,image/bmp,image/a
|
||||
const uploadButtonDefaultLabel = uploadButtonLabel?.textContent || '';
|
||||
|
||||
function renderUploadButton() {
|
||||
if (uploadButtonLabel) uploadButtonLabel.textContent = 'Загрузка' + '.'.repeat(uploadDots);
|
||||
window.ZoomzillaUpload.renderLoadingLabel(uploadButtonLabel, uploadDots, <?= json_encode(Yii::t('app', 'Загрузка'), JSON_UNESCAPED_UNICODE) ?>);
|
||||
}
|
||||
|
||||
function beginUploadPending() {
|
||||
@@ -118,7 +118,7 @@ $basePickerAccept = 'image/jpeg,image/png,image/gif,image/webp,image/bmp,image/a
|
||||
uploadButton.setAttribute('aria-busy', 'true');
|
||||
}
|
||||
uploadDotsTimer = window.setInterval(() => {
|
||||
uploadDots = uploadDots === 5 ? 1 : uploadDots + 1;
|
||||
uploadDots = (uploadDots + 1) % 6;
|
||||
renderUploadButton();
|
||||
}, 500);
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user