From e62de7b0e7e5af6ec11f85c9fb6d26dc6afc089d Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Fri, 18 Aug 2017 15:03:41 +0530 Subject: [PATCH] [minor] print_style.js --- frappe/printing/doctype/print_style/print_style.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/frappe/printing/doctype/print_style/print_style.js b/frappe/printing/doctype/print_style/print_style.js index 71e863efa7..44c4a528f4 100644 --- a/frappe/printing/doctype/print_style/print_style.js +++ b/frappe/printing/doctype/print_style/print_style.js @@ -3,11 +3,6 @@ frappe.ui.form.on('Print Style', { refresh: function(frm) { - /* update in local */ - if (!frm.is_new() && !locals[':Print Style'][frm.doc.name]) { - locals[':Print Style'][frm.doc.name] = frm.doc; - } - frm.add_custom_button(__('Print Settings'), () => { frappe.set_route('Form', 'Print Settings'); })