mirror of
https://github.com/kiwix/kiwix-js.git
synced 2025-09-22 12:01:15 -04:00
Merge branch 'master' of ssh://github.com/mossroy/evopedia-html5
This commit is contained in:
commit
37da0db928
@ -26,7 +26,9 @@ define(function(require) {
|
|||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
$('#prefix').on('keyup', function(e) {
|
$('#prefix').on('keyup', function(e) {
|
||||||
onKeyUpPrefix(e);
|
if (localArchive !== null && localArchive.titleFile !== null) {
|
||||||
|
onKeyUpPrefix(e);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
// Bottome bar :
|
// Bottome bar :
|
||||||
$('#btnBack').on('click', function(e) {
|
$('#btnBack').on('click', function(e) {
|
||||||
@ -211,10 +213,11 @@ define(function(require) {
|
|||||||
$('#searchingForTitles').show();
|
$('#searchingForTitles').show();
|
||||||
$('#configuration').hide();
|
$('#configuration').hide();
|
||||||
$('#articleContent').empty();
|
$('#articleContent').empty();
|
||||||
if (localArchive.titleFile) {
|
if (localArchive !== null && localArchive.titleFile !== null) {
|
||||||
localArchive.findTitlesWithPrefix(prefix.trim(), MAX_SEARCH_RESULT_SIZE, populateListOfTitles);
|
localArchive.findTitlesWithPrefix(prefix.trim(), MAX_SEARCH_RESULT_SIZE, populateListOfTitles);
|
||||||
} else {
|
} else {
|
||||||
alert("Title file not set");
|
$('#searchingForTitles').hide();
|
||||||
|
alert("Archive not set : please select an archive in the 'Configure' section");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user