From 29b0755b844522ab78ef79032905eb773af4c4d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20van=20der=20Essen?= Date: Tue, 5 Nov 2013 15:31:28 +0100 Subject: [PATCH] [IMP] point_of_sale: remove global calls to jquery bzr revid: fva@openerp.com-20131105143128-hl73k961kgzyomw9 --- addons/point_of_sale/static/src/js/widgets.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/addons/point_of_sale/static/src/js/widgets.js b/addons/point_of_sale/static/src/js/widgets.js index d237b552d17..39fa858171c 100644 --- a/addons/point_of_sale/static/src/js/widgets.js +++ b/addons/point_of_sale/static/src/js/widgets.js @@ -912,28 +912,28 @@ function openerp_pos_widgets(instance, module){ //module is instance.point_of_sa // -------- Popups --------- this.help_popup = new module.HelpPopupWidget(this, {}); - this.help_popup.appendTo($('.point-of-sale')); + this.help_popup.appendTo(this.$el); this.error_popup = new module.ErrorPopupWidget(this, {}); - this.error_popup.appendTo($('.point-of-sale')); + this.error_popup.appendTo(this.$el); this.error_product_popup = new module.ProductErrorPopupWidget(this, {}); - this.error_product_popup.appendTo($('.point-of-sale')); + this.error_product_popup.appendTo(this.$el); this.error_session_popup = new module.ErrorSessionPopupWidget(this, {}); - this.error_session_popup.appendTo($('.point-of-sale')); + this.error_session_popup.appendTo(this.$el); this.choose_receipt_popup = new module.ChooseReceiptPopupWidget(this, {}); - this.choose_receipt_popup.appendTo($('.point-of-sale')); + this.choose_receipt_popup.appendTo(this.$el); this.error_negative_price_popup = new module.ErrorNegativePricePopupWidget(this, {}); - this.error_negative_price_popup.appendTo($('.point-of-sale')); + this.error_negative_price_popup.appendTo(this.$el); this.error_no_client_popup = new module.ErrorNoClientPopupWidget(this, {}); - this.error_no_client_popup.appendTo($('.point-of-sale')); + this.error_no_client_popup.appendTo(this.$el); this.error_invoice_transfer_popup = new module.ErrorInvoiceTransferPopupWidget(this, {}); - this.error_invoice_transfer_popup.appendTo($('.point-of-sale')); + this.error_invoice_transfer_popup.appendTo(this.$el); // -------- Misc ---------