mirror of
https://github.com/kiwix/kiwix-js.git
synced 2025-09-23 04:28:30 -04:00
Remove focus on prefix field (buggy on device)
This commit is contained in:
parent
b9b90a3832
commit
29520d0727
@ -136,9 +136,8 @@ define(function(require) {
|
||||
localArchive.readMathFilesFromStorage(storage, archiveDirectory);
|
||||
localArchive.readMetadataFileFromStorage(storage, archiveDirectory);
|
||||
localArchive.readCoordinateFilesFromStorage(storage, archiveDirectory, 0);
|
||||
// The archive is set : focus on the prefix field to start searching
|
||||
// The archive is set : go back to home page to start searching
|
||||
$("#btnHome").click();
|
||||
document.getElementById("prefix").focus();
|
||||
}
|
||||
|
||||
/**
|
||||
@ -155,9 +154,8 @@ define(function(require) {
|
||||
function setLocalArchiveFromFileSelect() {
|
||||
localArchive = new evopediaArchive.LocalArchive();
|
||||
localArchive.initializeFromArchiveFiles(document.getElementById('archiveFiles').files);
|
||||
// The archive is set : focus on the prefix field to start searching
|
||||
// The archive is set : go back to home page to start searching
|
||||
$("#btnHome").click();
|
||||
document.getElementById("prefix").focus();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user