mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 20:29:09 +00:00
in mousetrap - do not save if cur_frm.save_disabled is set
This commit is contained in:
@@ -168,7 +168,7 @@ erpnext.setup_mousetrap = function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
Mousetrap.bind(["command+s", "ctrl+s"], function() {
|
Mousetrap.bind(["command+s", "ctrl+s"], function() {
|
||||||
if(cur_frm)
|
if(cur_frm && !cur_frm.save_disabled)
|
||||||
cur_frm.save();
|
cur_frm.save();
|
||||||
else if(wn.container.page.save_action)
|
else if(wn.container.page.save_action)
|
||||||
wn.container.page.save_action();
|
wn.container.page.save_action();
|
||||||
|
|||||||
Reference in New Issue
Block a user