mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-17 14:57:23 +08:00
fixed minor JS codestyle issues
This commit is contained in:
@@ -57,7 +57,7 @@
|
|||||||
// whether to perform validation when a change is detected on the input
|
// whether to perform validation when a change is detected on the input
|
||||||
validateOnChange: false,
|
validateOnChange: false,
|
||||||
// whether to perform validation when the user is typing.
|
// whether to perform validation when the user is typing.
|
||||||
validateOnType: false,
|
validateOnType: false,
|
||||||
// number of milliseconds that the validation should be delayed when a user is typing in the input field.
|
// number of milliseconds that the validation should be delayed when a user is typing in the input field.
|
||||||
validationDelay: 200,
|
validationDelay: 200,
|
||||||
// whether to enable AJAX-based validation.
|
// whether to enable AJAX-based validation.
|
||||||
|
|||||||
@@ -51,8 +51,8 @@
|
|||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
cache: false,
|
cache: false,
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
$e.attr('src', data['url']);
|
$e.attr('src', data.url);
|
||||||
$('body').data(settings.hashKey, [data['hash1'], data['hash2']]);
|
$('body').data(settings.hashKey, [data.hash1, data.hash2]);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user