mirror of
https://github.com/kiwix/kiwix-js-pwa.git
synced 2025-09-11 21:34:43 -04:00
Do not apply openAllSections to landing page
Former-commit-id: d2722f0c9737b90abb9e24cdeb47b047adcb7177 [formerly 3c262658358503242d3f29e0291d57f81a0da060] [formerly 81942e8b6fc4a35922c6bd4582fc03b800841a19] [formerly ed6889bc853ae0b7353e1ec8c5aa045a0d2b0d7e [formerly cf6a85b45a05dd1cd0222ea50b1f1b3ccac99c66 [formerly ed8eb2d115aa863924c551b7af76d081386b31ec]]] Former-commit-id: 585c66d14e88ff93d63d49721a9a4e2609693067 [formerly 0d19cdf512426891adbaa15fb41a224841183e3e [formerly a037f5dda0fbe1f49a43c5ffc0d1e7981c6dab18]] Former-commit-id: 1be8367d4d2e05c3a0f04035aaff26f7b17d15e7 [formerly 6e680a54bab2bf4ce0851e7e9fe3d914ae85e84e] Former-commit-id: 6265e97e7256e16e35b88212b24019047832ae6d
This commit is contained in:
parent
93036e8f0f
commit
d3b7ad5ecd
@ -3321,7 +3321,7 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'util', 'cache', 'images', 'sett
|
||||
checkToolbar();
|
||||
//Set page width according to user preference
|
||||
removePageMaxWidth();
|
||||
openAllSections();
|
||||
if (!params.isLandingPage) openAllSections();
|
||||
setupHeadings();
|
||||
listenForNavigationKeys();
|
||||
// We need to keep tabs on the opened tabs or windows if the user wants right-click functionality, and also parse download links
|
||||
@ -3344,6 +3344,7 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'util', 'cache', 'images', 'sett
|
||||
$("#searchingArticles").hide();
|
||||
// If we reloaded the page to print the desktop style, we need to return to the printIntercept dialogue
|
||||
if (params.printIntercept) printIntercept();
|
||||
params.isLandingPage = false;
|
||||
} else {
|
||||
loaded = false;
|
||||
}
|
||||
@ -3577,7 +3578,7 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'util', 'cache', 'images', 'sett
|
||||
|
||||
// App appears to have successfully launched
|
||||
params.appIsLaunching = false;
|
||||
params.isLandingPage = false;
|
||||
// params.isLandingPage = false;
|
||||
|
||||
// Calculate the current article's ZIM baseUrl to use when processing relative links
|
||||
params.baseURL = (dirEntry.namespace + '/' + dirEntry.url.replace(/[^/]+$/, ''))
|
||||
@ -4066,7 +4067,7 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'util', 'cache', 'images', 'sett
|
||||
}
|
||||
}
|
||||
}
|
||||
openAllSections();
|
||||
if (!params.isLandingPage) openAllSections();
|
||||
|
||||
parseAnchorsJQuery(dirEntry);
|
||||
images.prepareImagesJQuery(articleWindow);
|
||||
@ -4098,6 +4099,7 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'util', 'cache', 'images', 'sett
|
||||
// For Chromium browsers a small delay greatly improves composition
|
||||
setTimeout(showArticle, 80);
|
||||
}
|
||||
params.isLandingPage = false;
|
||||
};
|
||||
|
||||
// For articles loaded in the iframe, we need to set the articleWindow (but if the user is opening a new tab/window,
|
||||
|
Loading…
x
Reference in New Issue
Block a user