[fix] substitute this by self, this.shop is out of scope

bzr revid: rlo@openerp.com-20120413140421-w2ff0cryr96l5djk
This commit is contained in:
Roberto López López (OpenERP)
2012-04-13 16:04:21 +02:00
parent 2c142dbf9a
commit 0d3cd92c1b
+1 -1
View File
@@ -1274,7 +1274,7 @@ openerp.point_of_sale = function(db) {
return (self.shop.get('products')).reset(m);
});
return $('.search-clear').click( function() {
(this.shop.get('products')).reset(products);
(self.shop.get('products')).reset(products);
$('.searchbox input').val('').focus();
return $('.search-clear').fadeOut();
});