spin issue fixed

This commit is contained in:
magepeopleteam 2022-04-15 03:32:30 +00:00
parent 264e735f60
commit e4a0488912
1 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ function mpwem_add_loader_xs(target) {
} }
function mpwem_remove_loader(target) { function mpwem_remove_loader(target) {
target.children('.spinner_loading').remove(); target.find('.spinner_loading').remove();
} }
function mpwem_page_scroll_to(target) { function mpwem_page_scroll_to(target) {
@ -148,7 +148,7 @@ function mpwem_page_scroll_to(target) {
let target = $(this); let target = $(this);
if (target.find('[data-bg-image]').css('background-image') === 'none') { if (target.find('[data-bg-image]').css('background-image') === 'none') {
target.find('[data-bg-image]').css('background-image', 'url("' + target.find('[data-bg-image]').data('bg-image') + '")').promise().done(function () { target.find('[data-bg-image]').css('background-image', 'url("' + target.find('[data-bg-image]').data('bg-image') + '")').promise().done(function () {
mpwem_remove_loader($(this)); mpwem_remove_loader(target);
}); });
} }
}); });