mirror of
https://github.com/kiwix/kiwix-js-pwa.git
synced 2025-09-13 14:28:38 -04:00
Don't show spinner on click if it's an anchor link
This commit is contained in:
parent
0b42107471
commit
71d92e3c7e
@ -4768,9 +4768,11 @@ var filterClickEvent = function (event) {
|
|||||||
// @TODO - may not be necessary because params.lastPageVisit is only set when HTML is loaded
|
// @TODO - may not be necessary because params.lastPageVisit is only set when HTML is loaded
|
||||||
} else {
|
} else {
|
||||||
var decHref = decodeURIComponent(href);
|
var decHref = decodeURIComponent(href);
|
||||||
|
if (!/^(?:#|javascript)/i.test(decHref)) {
|
||||||
uiUtil.pollSpinner('Loading ' + decHref.replace(/([^/]+)$/, '$1').substring(0, 18) + '...');
|
uiUtil.pollSpinner('Loading ' + decHref.replace(/([^/]+)$/, '$1').substring(0, 18) + '...');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
var loaded = false;
|
var loaded = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user