commonified ripped paper effect and ctrl+s in todo

This commit is contained in:
Rushabh Mehta
2012-10-03 12:22:13 +05:30
parent c919d2579e
commit ac7baf046a
3 changed files with 13 additions and 4 deletions

View File

@@ -182,6 +182,8 @@ erpnext.setup_mousetrap = function() {
Mousetrap.bind(["command+s", "ctrl+s"], function() {
if(cur_frm)
cur_frm.save();
else if(wn.container.page.save_action)
wn.container.page.save_action();
return false;
});
}