Merge branch 'master' of github.com:webnotes/erpnext

This commit is contained in:
Nabin Hait
2012-12-23 09:57:36 +05:30
44 changed files with 189 additions and 211 deletions

View File

@@ -47,7 +47,7 @@ cur_frm.cscript.refresh = function(doc, dt, dn) {
} else {
cur_frm.set_intro("This Leave Application is pending approval. Only the Leave Apporver can update status.")
cur_frm.toggle_enable("status", false);
if(!doc.__islocal) cur_frm.frm_head.appframe.buttons.Submit.toggle(false);
if(!doc.__islocal) cur_frm.frm_head.appframe.buttons.Submit.remove();
}
} else {
if(doc.status=="Approved") {