mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-28 11:36:44 +00:00
Fix "polarity" of modal form submit button (#3142)
This commit is contained in:
parent
1e6bdfbcab
commit
88a0e38b69
@ -639,13 +639,13 @@ function insertConfirmButton(options) {
|
|||||||
$(options.modal).find('#modal-footer-buttons').append(html);
|
$(options.modal).find('#modal-footer-buttons').append(html);
|
||||||
|
|
||||||
// Disable the 'submit' button
|
// Disable the 'submit' button
|
||||||
enableSubmitButton(options, true);
|
enableSubmitButton(options, false);
|
||||||
|
|
||||||
// Trigger event
|
// Trigger event
|
||||||
$(options.modal).find('#modal-confirm').change(function() {
|
$(options.modal).find('#modal-confirm').change(function() {
|
||||||
var enabled = this.checked;
|
var enabled = this.checked;
|
||||||
|
|
||||||
enableSubmitButton(options, !enabled);
|
enableSubmitButton(options, enabled);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user