summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorniv-openerp <nicolas.vanhoren@openerp.com>2011-12-07 11:01:21 +0100
committerniv-openerp <nicolas.vanhoren@openerp.com>2011-12-07 11:01:21 +0100
commitdcdee5b4293e44d2d77690cdadb5b669af2bc9ec (patch)
tree5b7f56478d7a54750068968f98498ec60756290d
parent59b89d88fd3622b4f3f228cde83734ad6861e3c1 (diff)
[fix] search problem
bzr revid: nicolas.vanhoren@openerp.com-20111207100121-xsybjs8bw2p66c48
-rw-r--r--addons/point_of_sale/static/src/js/pos.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/point_of_sale/static/src/js/pos.js b/addons/point_of_sale/static/src/js/pos.js
index 05adcaf458a..14019eee62a 100644
--- a/addons/point_of_sale/static/src/js/pos.js
+++ b/addons/point_of_sale/static/src/js/pos.js
@@ -1103,7 +1103,7 @@ openerp.point_of_sale = function(db) {
s = $(this).val().toLowerCase();
if (s) {
m = products.filter( function(p) {
- return p.name.toLowerCase().indexOf(s);
+ return p.name.toLowerCase().indexOf(s) != -1;
});
$('.search-clear').fadeIn();
} else {