mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-01 20:19:42 +08:00
Fix #18650: Refactor framework/assets/yii.activeForm.js arrow function into traditional function for IE11 compatibility
This commit is contained in:
committed by
GitHub
parent
29777af4c2
commit
7e323ba07c
@ -4,6 +4,7 @@ Yii Framework 2 Change Log
|
|||||||
2.0.43 under development
|
2.0.43 under development
|
||||||
------------------------
|
------------------------
|
||||||
|
|
||||||
|
- Bug #18650: Refactor `framework/assets/yii.activeForm.js` arrow function into traditional function for IE11 compatibility (marcovtwout)
|
||||||
- Enh #18628: Added strings "software", and "hardware" to `$specials` array in `yii\helpers\BaseInflector` (kjusupov)
|
- Enh #18628: Added strings "software", and "hardware" to `$specials` array in `yii\helpers\BaseInflector` (kjusupov)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -329,7 +329,9 @@
|
|||||||
this.$form = $form;
|
this.$form = $form;
|
||||||
var $input = findInput($form, this);
|
var $input = findInput($form, this);
|
||||||
|
|
||||||
var disabled = $input.toArray().reduce((result, next) => result && $(next).is(':disabled'), true);
|
var disabled = $input.toArray().reduce(function(result, next) {
|
||||||
|
return result && $(next).is(':disabled');
|
||||||
|
}, true);
|
||||||
if (disabled) {
|
if (disabled) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user