Browse Source

Fixed yii.js to follow jQuery 3.0 API changes

https://jquery.com/upgrade-guide/3.0/#breaking-change-and-feature-jquery-when-arguments
Single argument that is not a promise will be automatically resolved and passed to `done()` handlers
tags/2.0.14
SilverFire - Dmitry Naumenko 7 years ago
parent
commit
1330ca9ec1
No known key found for this signature in database
GPG Key ID: 39DD917A92B270A
  1. 2
      framework/assets/yii.js

2
framework/assets/yii.js

@ -253,7 +253,7 @@ window.yii = (function ($) {
$form.trigger('submit');
$.when($form.data('yiiSubmitFinalizePromise')).then(function () {
$.when($form.data('yiiSubmitFinalizePromise')).done(function () {
if (newForm) {
$form.remove();
return;

Loading…
Cancel
Save