js: pass disabled attribute attached to dialog button (#13215)
This commit is contained in:
parent
39ccc33cc4
commit
8bf9dc3b3b
|
@ -142,6 +142,9 @@ var gadjo_js = gadjo_js || {};
|
|||
var button = Object();
|
||||
|
||||
button.text = $elem.text();
|
||||
if ($elem.prop('disabled')) {
|
||||
button.disabled = 'disabled';
|
||||
}
|
||||
if ($elem.hasClass('cancel')) {
|
||||
/* special behaviour for the cancel button: do not send
|
||||
* anything to server, just close the dialog */
|
||||
|
|
Loading…
Reference in New Issue