mirror of
https://github.com/kiwix/kiwix-js.git
synced 2025-08-03 19:27:11 -04:00
Change incorrect function calls to spinner (#1299)
This commit is contained in:
parent
bd0e36cde9
commit
269e01b5d9
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user