web/data/cubicweb.ajax.js
changeset 1077 fe26a0cda180
parent 955 3017a858bbc2
child 1263 01152fffd593
--- a/web/data/cubicweb.ajax.js	Wed Mar 11 14:34:35 2009 +0100
+++ b/web/data/cubicweb.ajax.js	Wed Mar 11 14:34:55 2009 +0100
@@ -31,6 +31,7 @@
 
 // cubicweb loadxhtml plugin to make jquery handle xhtml response
 jQuery.fn.loadxhtml = function(url, data, reqtype, mode) {
+
     var ajax = null;
     if (reqtype == 'post') {
 	ajax = jQuery.post;
@@ -47,6 +48,7 @@
 	delete data.callback;
     }
     var node = this.get(0); // only consider the first element
+    ajax = jQuery.post;
     ajax(url, data, function(response) {
 	var domnode = getDomFromResponse(response);
 	if (mode == 'swap') {