@@ -475,6 +475,11 @@ fieldset[disabled] .form-control { | |||||
.modal-title { | .modal-title { | ||||
margin-top: 5px; | margin-top: 5px; | ||||
} | } | ||||
.btn-primary.disabled { | |||||
background-color: #b1bdca; | |||||
color: #fff; | |||||
border-color: #b1bdca; | |||||
} | |||||
.form-control { | .form-control { | ||||
position: relative; | position: relative; | ||||
} | } | ||||
@@ -86,6 +86,12 @@ frappe.ui.Dialog = frappe.ui.FieldGroup.extend({ | |||||
click.apply(me, [values]); | click.apply(me, [values]); | ||||
}); | }); | ||||
}, | }, | ||||
disable_primary_action: function() { | |||||
this.get_primary_btn().addClass('disabled'); | |||||
}, | |||||
enable_primary_action: function() { | |||||
this.get_primary_btn().removeClass('disabled'); | |||||
}, | |||||
make_head: function() { | make_head: function() { | ||||
var me = this; | var me = this; | ||||
this.set_title(this.title); | this.set_title(this.title); | ||||
@@ -289,6 +289,12 @@ textarea.form-control { | |||||
margin-top: 5px; | margin-top: 5px; | ||||
} | } | ||||
.btn-primary.disabled { | |||||
background-color: #b1bdca; | |||||
color: #fff; | |||||
border-color: #b1bdca; | |||||
} | |||||
.form-control { | .form-control { | ||||
position: relative; | position: relative; | ||||