[fix] substitute this by self, this.shop is out of scope
bzr revid: rlo@openerp.com-20120413140421-w2ff0cryr96l5djk
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user