spin issue fixed
This commit is contained in:
parent
264e735f60
commit
e4a0488912
|
@ -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);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue