Enhances ActiveForm with support for HTML5 attributes like formaction, formtarget and formmethod (#8719) [ci-skip] (#11999)

* Enhances ActiveForm with support for HTML5 attributes like formaction, formtarget and formmethod (#8719)

* Requested (format) changes by samdark
This commit is contained in:
Robbert Jan van de Velde
2016-09-16 22:53:24 +02:00
committed by Alexander Makarov
parent 454605d8cf
commit 3ba72da6fa
2 changed files with 6 additions and 5 deletions

View File

@@ -22,6 +22,9 @@ Yii Framework 2 Change Log
- Bug #11461: Fixed migration tool error when create migrate with comma in `defaultValue` (pana1990, s-o-f)
- Bug #11912: Fixed PostgreSQL Schema to support negative default values for integer/float/decimal columns (nsknewbie)
- Bug #11947: Fixed `gridData` initialization in `yii.gridView.js` (pavlm)
- Bug #11949: Fixed `ActiveField::end` generates close tag when it's `option['tag']` is null (egorio)
- Enh #8719: Add support for HTML5 attributes on submitbutton (formaction/formmethod...) for ActiveForm (VirtualRJ)
- Enh #11950: Improve BaseArrayHelper::keyExists speed (egorio)
- Bug #11949: Fixed `ActiveField::end()` generates close tag when it's `option['tag']` is `null` (egorio)
- Bug #11977: Fixed `yii\rest\Serializer::serialize()` serializes DataProvider incorrectly, if models keys do not compose integer sequence (dcb9, klimov-paul)
- Enh #11275: Added possibility of unset or force replace former value in `ArrayHelper::merge()` (mdmunir, rob006)

View File

@@ -620,11 +620,9 @@
} else {
data.validated = true;
if (data.submitObject) {
applyButtonOptions($form, data.submitObject);
}
$form.submit();
if (data.submitObject) {
restoreButtonOptions($form);
data.submitObject.trigger("click");
} else {
$form.submit();
}
}
} else {