mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-13 02:01:21 +00:00
bom cleanup
This commit is contained in:
@@ -66,7 +66,6 @@ KBItemToolbar = function(args, kb) {
|
||||
|
||||
this.setup_del = function() {
|
||||
$(this.line1).find('.del-link').click(function() {
|
||||
console.log(1);
|
||||
this.innerHTML = 'deleting...';
|
||||
this.disabled = 1;
|
||||
$c_page('utilities', 'questions', 'delete', {
|
||||
|
||||
@@ -168,7 +168,7 @@ erpnext.setup_mousetrap = function() {
|
||||
});
|
||||
|
||||
Mousetrap.bind(["command+s", "ctrl+s"], function() {
|
||||
if(cur_frm && !cur_frm.save_disabled)
|
||||
if(cur_frm && !cur_frm.save_disabled && cint(cur_frm.doc.docstatus)===0)
|
||||
cur_frm.save();
|
||||
else if(wn.container.page.save_action)
|
||||
wn.container.page.save_action();
|
||||
|
||||
Reference in New Issue
Block a user