Don't show spinner on click if it's an anchor link

This commit is contained in:
Jaifroid 2023-10-08 20:14:00 +01:00
parent 0b42107471
commit 71d92e3c7e

View File

@ -4768,7 +4768,9 @@ var filterClickEvent = function (event) {
// @TODO - may not be necessary because params.lastPageVisit is only set when HTML is loaded
} else {
var decHref = decodeURIComponent(href);
uiUtil.pollSpinner('Loading ' + decHref.replace(/([^/]+)$/, '$1').substring(0, 18) + '...');
if (!/^(?:#|javascript)/i.test(decHref)) {
uiUtil.pollSpinner('Loading ' + decHref.replace(/([^/]+)$/, '$1').substring(0, 18) + '...');
}
}
}
};