Browse Source

Fix #18650: Refactor `framework/assets/yii.activeForm.js` arrow function into traditional function for IE11 compatibility

tags/2.0.43
Marco van 't Wout 3 years ago committed by GitHub
parent
commit
7e323ba07c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      framework/CHANGELOG.md
  2. 4
      framework/assets/yii.activeForm.js

1
framework/CHANGELOG.md

@ -4,6 +4,7 @@ Yii Framework 2 Change Log
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)

4
framework/assets/yii.activeForm.js

@ -329,7 +329,9 @@
this.$form = $form;
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) {
return true;
}

Loading…
Cancel
Save