Reset header and footer before loading new article

This commit is contained in:
Jaifroid 2023-11-02 16:58:11 +00:00
parent df5dc574a4
commit be4558e204

View File

@ -4705,6 +4705,7 @@ var filterClickEvent = function (event) {
var decHref = decodeURIComponent(href); var decHref = decodeURIComponent(href);
if (!/^(?:#|javascript)/i.test(decHref)) { if (!/^(?:#|javascript)/i.test(decHref)) {
uiUtil.pollSpinner('Loading ' + decHref.replace(/([^/]+)$/, '$1').substring(0, 18) + '...'); uiUtil.pollSpinner('Loading ' + decHref.replace(/([^/]+)$/, '$1').substring(0, 18) + '...');
uiUtil.showSlidingUIElements();
} }
} }
} }
@ -6021,6 +6022,7 @@ function addListenersToLink (a, href, baseUrl) {
} }
// @TODO: We are getting double activations of the click event. This needs debugging. For now, we use a flag to prevent this. // @TODO: We are getting double activations of the click event. This needs debugging. For now, we use a flag to prevent this.
a.newcontainer = true; // Prevents double activation a.newcontainer = true; // Prevents double activation
uiUtil.showSlidingUIElements();
goToArticle(zimUrl, downloadAttrValue, contentType, zimUrlFullEncoding); goToArticle(zimUrl, downloadAttrValue, contentType, zimUrlFullEncoding);
setTimeout(reset, 1400); setTimeout(reset, 1400);
}; };