From 152a0c86b0b3c28ca9cd7db0fc48c106261d1509 Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Mon, 29 Oct 2018 16:50:18 +0530 Subject: [PATCH] [Fix] Delete button not working in POS for Ipad --- erpnext/accounts/page/pos/pos.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/erpnext/accounts/page/pos/pos.js b/erpnext/accounts/page/pos/pos.js index 528e3d3f9c..314b91bea5 100755 --- a/erpnext/accounts/page/pos/pos.js +++ b/erpnext/accounts/page/pos/pos.js @@ -1573,15 +1573,16 @@ erpnext.pos.PointOfSale = erpnext.taxes_and_totals.extend({ style="margin-right: 5px;">${__('Print')} ${__('New')}`); - $('.print_doc').click(function () { - var html = frappe.render(me.print_template_data, me.frm.doc) - me.print_document(html) + this.msgprint.msg_area.find('.print_doc').on('click', function() { + var html = frappe.render(me.print_template_data, me.frm.doc); + me.print_document(html); }) - $('.new_doc').click(function () { - me.msgprint.hide() - me.make_new_cart() + this.msgprint.msg_area.find('.new_doc').on('click', function() { + me.msgprint.hide(); + me.make_new_cart(); }) + }, print_document: function (html) {