From 99250bb270b5bf0d65fc95decd183a697ab6ec52 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Mon, 18 Jun 2012 11:57:30 +0530 Subject: [PATCH] DocType: Import From File - deprecated --- py/core/doctype/doctype/doctype.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/py/core/doctype/doctype/doctype.js b/py/core/doctype/doctype/doctype.js index 97982e6736..4bfeda6a27 100644 --- a/py/core/doctype/doctype/doctype.js +++ b/py/core/doctype/doctype/doctype.js @@ -47,19 +47,8 @@ cur_frm.cscript.refresh = function(doc, cdt, cdn) { Custom Script \ and Property Setter') } - - - // show button for import - cur_frm.add_custom_button('Import from File', cur_frm.cscript.do_import); } cur_frm.cscript.validate = function(doc, cdt, cdn) { doc.server_code_compiled = null; -} - -cur_frm.cscript.do_import = function(doc, cdt, cdn) { - callback = function(r,rt) { - cur_frm.refresh_doc(); - } - $c_obj([doc], 'import_doctype', '', callback) -} +} \ No newline at end of file