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

This commit is contained in:
Nabin Hait
2012-12-14 13:21:52 +05:30
5 changed files with 41 additions and 1 deletions

View File

@@ -168,7 +168,7 @@ erpnext.setup_mousetrap = function() {
});
Mousetrap.bind(["command+s", "ctrl+s"], function() {
if(cur_frm)
if(cur_frm && !cur_frm.save_disabled)
cur_frm.save();
else if(wn.container.page.save_action)
wn.container.page.save_action();