mirror of
https://github.com/yiisoft/yii2.git
synced 2026-02-20 16:51:49 +01:00
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:
committed by
Alexander Makarov
parent
454605d8cf
commit
3ba72da6fa
@@ -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)
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user