in mousetrap - do not save if cur_frm.save_disabled is set
This commit is contained in:
parent
72d2a627f5
commit
161cf87cc0
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user