diff options
author | Papoteur <papoteur@mageialinux-online.org> | 2016-10-02 20:54:43 +0200 |
---|---|---|
committer | Papoteur <papoteur@mageialinux-online.org> | 2016-10-02 20:54:43 +0200 |
commit | 4a581e9dc58e4202455295b4e0efcd4597af5e99 (patch) | |
tree | affebabe9c3947c3fc44f965057c38578b5dcf46 /installer/5/it/content/nwSearchFnt.js | |
parent | ca7b0f072918faba07fa4de42ec43715e5efd2ef (diff) | |
download | doc-4a581e9dc58e4202455295b4e0efcd4597af5e99.tar doc-4a581e9dc58e4202455295b4e0efcd4597af5e99.tar.gz doc-4a581e9dc58e4202455295b4e0efcd4597af5e99.tar.bz2 doc-4a581e9dc58e4202455295b4e0efcd4597af5e99.tar.xz doc-4a581e9dc58e4202455295b4e0efcd4597af5e99.zip |
Adding or refreshing installer in it
Diffstat (limited to 'installer/5/it/content/nwSearchFnt.js')
-rw-r--r-- | installer/5/it/content/nwSearchFnt.js | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/installer/5/it/content/nwSearchFnt.js b/installer/5/it/content/nwSearchFnt.js index fc12d113..13327867 100644 --- a/installer/5/it/content/nwSearchFnt.js +++ b/installer/5/it/content/nwSearchFnt.js @@ -104,11 +104,17 @@ function Effectuer_recherche(expressionInput) { }
}
finalWordsList = tempTab;
+
+ if (!finalWordsList.length) {
+ finalWordsList = wordsList;
+ }
+
+ fileAndWordList = SortResults(finalWordsList);
- if (finalWordsList.length) {
+ if (fileAndWordList && fileAndWordList.length) {
//search 'and' and 'or' one time
- fileAndWordList = SortResults(finalWordsList);
+ //fileAndWordList = SortResults(finalWordsList);
var cpt = fileAndWordList.length;
for (var i = cpt - 1; i >= 0; i--) {
@@ -432,6 +438,11 @@ function SortResults(mots) { // get the list of the indices of the files.
var listNumerosDesFicStr = w[mots[t].toString()];
//alert ("listNumerosDesFicStr "+listNumerosDesFicStr);
+
+ if (!listNumerosDesFicStr) {
+ return;
+ }
+
var tab = listNumerosDesFicStr.split(",");
//for each file (file's index):
|