[TASK] Use jQuery for IRRE Ajax calls 35/29835/8
authorAndreas Wolf <andreas.wolf@typo3.org>
Sat, 3 May 2014 18:24:32 +0000 (20:24 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 26 Jul 2014 15:48:50 +0000 (17:48 +0200)
Change-Id: I5fe2f79ba233e114fb2bfb87c1100eeb8dccbc41
Resolves: #58475
Releases: 6.3
Reviewed-on: http://review.typo3.org/29835
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/backend/Resources/Public/JavaScript/jsfunc.inline.js

index 95989dd..9c4d9da 100644 (file)
@@ -190,19 +190,19 @@ var inline = {
                                urlParams += '&ajax[context]=' + encodeURIComponent(Object.toJSON(context));
                        }
                        options = {
-                               method: 'post',
-                               parameters: urlParams,
-                               onSuccess: function (xhr) {
+                               type: 'POST',
+                               data: urlParams,
+                               success: function (data, message, jqXHR) {
                                        inline.isLoading = false;
-                                       inline.processAjaxResponse(method, xhr);
+                                       inline.processAjaxResponse(method, jqXHR);
                                },
-                               onFailure: function (xhr) {
+                               error: function (jqXHR, statusText, errorThrown) {
                                        inline.isLoading = false;
-                                       inline.showAjaxFailure(method, xhr);
+                                       inline.showAjaxFailure(method, jqXHR);
                                }
                        };
 
-                       new Ajax.Request(url, options);
+                       TYPO3.jQuery.ajax(url, options);
                }
        },