mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-10 11:40:16 +08:00
jQuery: now with valid ajaxComplete test
Also with corrected jquerymobile attr test
This commit is contained in:
@@ -161,7 +161,7 @@ function test_ajaxComplete() {
|
||||
});
|
||||
$('.log').ajaxComplete(function (e, xhr, settings) {
|
||||
if (settings.url == 'ajax/test.html') {
|
||||
$(this).text('Triggered ajaxComplete handler. The result is ' + xhr.responseHTML);
|
||||
$(this).text('Triggered ajaxComplete handler. The result is ' + xhr.responseText);
|
||||
}
|
||||
});
|
||||
$("#msg").ajaxComplete(function (event, request, settings) {
|
||||
|
||||
Vendored
+1
-1
@@ -666,7 +666,7 @@ interface JQuery {
|
||||
*
|
||||
* @param handler The function to be invoked.
|
||||
*/
|
||||
ajaxComplete(handler: (event: any, XMLHttpRequest: any, ajaxOptions: any) => any): JQuery;
|
||||
ajaxComplete(handler: (event: any, XMLHttpRequest: XMLHttpRequest, ajaxOptions: any) => any): JQuery;
|
||||
ajaxError(handler: (event: any, jqXHR: any, settings: any, exception: any) => any): JQuery;
|
||||
ajaxSend(handler: (event: any, jqXHR: any, settings: any, exception: any) => any): JQuery;
|
||||
ajaxStart(handler: () => any): JQuery;
|
||||
|
||||
@@ -216,7 +216,7 @@ function test_form() {
|
||||
$("input[type='radio']").checkboxradio({ mini: true });
|
||||
$("input[type='radio']").checkboxradio({ theme: "a" });
|
||||
$("input[type='radio']").checkboxradio('enable');
|
||||
$("input[type='radio']:first").attr("checked", true).checkboxradio("refresh");
|
||||
$("input[type='radio']:first").prop("checked", true).checkboxradio("refresh");
|
||||
$("input[type='radio']").checkboxradio({
|
||||
create: function (event, ui) { }
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user