Better handling of invalid clicks on archiveList

Former-commit-id: 0f708b4f2a536bb9d584cd099b6f46ed5222bd54 [formerly bda08ee2069eea2f25293f12c5fed635d550ad8f [formerly c310471a5d4e4fba1db9434bd36aa956c2a6b69a]]
Former-commit-id: 4c1822c861d7d82a5e989b28b5d9d475fa4b5129
Former-commit-id: 80a0070738ce473cef698ba96b8645a3285532a8
This commit is contained in:
Jaifroid 2021-01-12 21:01:31 +00:00
parent 1a13d8dc3a
commit b179e47b1b
3 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@
// App version number - ENSURE IT MATCHES VALUE IN init.js
// DEV: Changing this will cause the browser to recognize that the Service Worker has changed, and it will download and
// install a new copy
const appVersion = '1.1.4-RP5';
const appVersion = '1.1.4-RP4';
// Kiwix ZIM Archive Download Server in regex form
// DEV: The server URL is defined in init.js, but is not available to us in SW

View File

@ -926,7 +926,7 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'util', 'cache', 'images', 'sett
if (selectFired) return;
// If nothing was selected, user will have to click again
// (NB this.selectedIndex will be -1 if no value has been selected)
if (!list || !~list.selectedIndex) return;
if (typeof list.selectedIndex === 'undefined' || !~list.selectedIndex) return;
selectFired = true;
var selected = list.target.value;
// Void any previous picked file to prevent it launching

View File

@ -49,7 +49,7 @@ var params = {};
*/
var appstate = {};
/******** UPDATE VERSION IN pwabuilder-sw.js TO MATCH VERSION *******/
params['version'] = "1.1.4-RP5"; //DEV: Manually update this version when there is a new release: it is compared to the Settings Store "version" in order to show first-time info, and the cookie is updated in app.js
params['version'] = "1.1.4-RP4"; //DEV: Manually update this version when there is a new release: it is compared to the Settings Store "version" in order to show first-time info, and the cookie is updated in app.js
/******* UPDATE THIS ^^^^^^ IN serveice worker!! ********************/
params['packagedFile'] = "wikipedia_en_100_maxi.zim"; //For packaged Kiwix JS (e.g. with Wikivoyage file), set this to the filename (for split files, give the first chunk *.zimaa) and place file(s) in default storage
params['archivePath'] = "archives"; //The directory containing the packaged archive(s) (relative to app's root directory)