From dbc8912bc3da78d600d9a0b72cbc6f2c666e185a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20van=20der=20Essen?= Date: Fri, 23 Jan 2015 18:45:58 +0100 Subject: [PATCH] [FIX] point_of_sale: this/self mismatch after refactor. --- addons/point_of_sale/static/src/js/popups.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/addons/point_of_sale/static/src/js/popups.js b/addons/point_of_sale/static/src/js/popups.js index e52d9be9669..f1d282f6c50 100644 --- a/addons/point_of_sale/static/src/js/popups.js +++ b/addons/point_of_sale/static/src/js/popups.js @@ -138,7 +138,7 @@ openerp.point_of_sale.load_popups = function load_popups(instance, module) { show: function(options){ options = options || {}; var self = this; - this._super(); + this._super(options); this.list = options.list || []; this.renderElement(); @@ -167,7 +167,7 @@ openerp.point_of_sale.load_popups = function load_popups(instance, module) { show: function(options){ options = options || {}; var self = this; - this._super(); + this._super(options); this.renderElement(); this.$('input,textarea').focus(); @@ -176,10 +176,10 @@ openerp.point_of_sale.load_popups = function load_popups(instance, module) { }); }, click_confirm: function(){ - var value = self.$('input,textarea').val(); - self.gui.close_popup(); + var value = this.$('input,textarea').val(); + this.gui.close_popup(); if( this.options.confirm ){ - this.options.confirm.call(self,value); + this.options.confirm.call(this,value); } }, }); @@ -197,7 +197,7 @@ openerp.point_of_sale.load_popups = function load_popups(instance, module) { show: function(options){ options = options || {}; var self = this; - this._super(); + this._super(options); this.inputbuffer = options.value || ''; this.renderElement();