jQuery: now with valid ajaxComplete test

Also with corrected jquerymobile attr test
This commit is contained in:
johnnyreilly
2013-12-26 21:15:05 +00:00
parent 427d2e0576
commit 3b581e0152
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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) {
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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) { }
});