[FIX] point_of_sale: Number.isNaN is not supported on older but supported browsers

bzr revid: fva@openerp.com-20121002100420-pcvbn7qqxyp62bzw
This commit is contained in:
Frédéric van der Essen
2012-10-02 12:04:20 +02:00
parent 6d1bf51324
commit c850875ca3
@@ -712,7 +712,7 @@ function openerp_pos_widgets(instance, module){ //module is instance.point_of_sa
});
this.$('.button.set_weight').click(function(){
var kg = Number(self.$('input.weight').val());
if(!Number.isNaN(kg)){
if(!isNaN(kg)){
self.pos.proxy.debug_set_weight(kg);
}
});