js: pass disabled attribute attached to dialog button (#13215)

This commit is contained in:
Frédéric Péters 2016-09-18 18:41:50 +02:00
parent 39ccc33cc4
commit 8bf9dc3b3b
1 changed files with 3 additions and 0 deletions

View File

@ -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 */