diff --git a/erpnext/accounts/page/pos/pos.js b/erpnext/accounts/page/pos/pos.js index a5ce985860..668b377fda 100644 --- a/erpnext/accounts/page/pos/pos.js +++ b/erpnext/accounts/page/pos/pos.js @@ -15,13 +15,11 @@ frappe.pages['pos'].refresh = function(wrapper) { window.onbeforeunload = function () { return wrapper.pos.beforeunload() } - wrapper.pos.on_refresh_page() } erpnext.pos.PointOfSale = erpnext.taxes_and_totals.extend({ init: function(wrapper){ - this.load = true; this.page = wrapper.page; this.wrapper = $(wrapper).find('.page-content'); this.set_indicator(); @@ -31,17 +29,6 @@ erpnext.pos.PointOfSale = erpnext.taxes_and_totals.extend({ this.si_docs = this.get_doc_from_localstorage(); }, - on_refresh_page: function() { - var me = this; - if(this.load){ - this.load = false; - }else if(this.connection_status){ - this.onload(); - }else{ - this.create_new(); - } - }, - beforeunload: function(e){ if(this.connection_status == false && frappe.get_route()[0] == "pos"){ e = e || window.event;