Bugfix: search codes also

This commit is contained in:
Martin Potier 2015-09-18 17:09:15 +02:00
parent ba774bd16e
commit 147e77d774
2 changed files with 7 additions and 7 deletions

View file

@ -18,9 +18,9 @@ Start it by calling you internet navigator on `cherche.html`.
Todo (sorted by priority)
-------------------------
1. ~~Make the search case-insensitive (as well as accents insensitive)~~
11. ~~BUG: trim spaces from search expression~~
12. BUG: fix search for codes also
2. Create a nice html page (may take several steps)
3. Make it chrome compatible (some trouble with the first ajax call)
4. Make the search mis-spelling safe (like Google does)
0. ~~Make the search case-insensitive (as well as accents insensitive)~~
0. ~~BUG: trim spaces from search expression~~
0. ~~BUG: fix search for codes also~~
0. Create a nice html page (may take several steps)
0. Make it chrome compatible (some trouble with the first ajax call)
0. Make the search mis-spelling safe (like Google does)

View file

@ -177,7 +177,7 @@ function displayMany (a) {
+ "<td>"+d.Catégorie+"</td></tr>"
: "";
var cs = "";
if (ds != "") {
if (ds == "") {
var c = cisp.by("Code", o.Orig);
cs = c ?
"<tr><td>"+c.Code+"</td>"