Change incorrect function calls to spinner (#1299)

This commit is contained in:
Jaifroid 2025-01-09 16:09:16 +00:00 committed by GitHub
parent bd0e36cde9
commit 269e01b5d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2504,7 +2504,7 @@ function handleClickOnReplayLink (ev, anchor) {
selectedArchive.readBinaryFile(dirEntry, function (fileDirEntry, content) {
var mimetype = fileDirEntry.getMimetype();
uiUtil.displayFileDownloadAlert(zimUrl, true, mimetype, content);
uiUtil.clearSpinner();
uiUtil.spinnerDisplay(false);
});
} else {
return uiUtil.systemAlert('We could not find a PDF document at ' + zimUrl, 'PDF not found');
@ -2543,7 +2543,7 @@ function handleClickOnReplayLink (ev, anchor) {
appstate.target = 'window';
articleContainer.kiwixType = appstate.target;
}
uiUtil.clearSpinner();
uiUtil.spinnerDisplay(false);
} else {
// Let Replay handle this link
anchor.passthrough = true;