|
|
|
@ -218,6 +218,7 @@
|
|
|
|
|
attributes: attributes, |
|
|
|
|
submitting: false, |
|
|
|
|
validated: false, |
|
|
|
|
validate_only: false, // validate without auto submitting
|
|
|
|
|
options: getFormOptions($form) |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
@ -754,6 +755,7 @@
|
|
|
|
|
data.submitting = false; |
|
|
|
|
} else { |
|
|
|
|
data.validated = true; |
|
|
|
|
if (!data.validate_only) { |
|
|
|
|
if (data.submitObject) { |
|
|
|
|
applyButtonOptions($form, data.submitObject); |
|
|
|
|
} |
|
|
|
@ -762,6 +764,7 @@
|
|
|
|
|
restoreButtonOptions($form); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
$.each(data.attributes, function () { |
|
|
|
|
if (!this.cancelled && (this.status === 2 || this.status === 3)) { |
|
|
|
|