fix(options): no loading-spinner flash on options-page load (Prompt I)
Remove the show/hide around the init prepare() call in options.js; the spinner keeps its display:none default and is only shown during a real upload (onBeforeSend/onSuccess in BindUpload). Bump OPTIONS_JS_TOKEN to 20261124.4 so browsers fetch the changed options.js once. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
parent
2d3715da4c
commit
daf3d93bb3
1 changed files with 6 additions and 5 deletions
|
|
@ -694,10 +694,11 @@ $(function () {
|
|||
return deferred.promise();
|
||||
};
|
||||
|
||||
$('.simple-template-edit-loading').css('display', 'block');
|
||||
prepare().then(function (runsesolve) {
|
||||
$('.simple-template-edit-loading').css('display', 'none');
|
||||
});
|
||||
// THEME CHANGE (Prompt I): the spinner is NOT shown on page load — nothing
|
||||
// asynchronous is awaited here (the 650ms timeout existed only to flash it).
|
||||
// It is still shown during a real upload (onBeforeSend/onSuccess in BindUpload
|
||||
// below); the element keeps its display:none default in options.twig.
|
||||
prepare();
|
||||
|
||||
$('.selector__open_lightbox').on('click', function (e) {
|
||||
e.preventDefault();
|
||||
|
|
|
|||
Loading…
Reference in a new issue