web/data/cubicweb.ajax.js
changeset 9661 c170ec8a4525
parent 9550 0188e957ce84
child 9770 112c884b2d8d
child 9819 95902c0b991b
--- a/web/data/cubicweb.ajax.js	Mon Jan 27 14:02:21 2014 +0100
+++ b/web/data/cubicweb.ajax.js	Fri Mar 28 14:59:33 2014 +0100
@@ -312,7 +312,7 @@
     $.extend(form, {
         'fname': fname,
         'pageid': pageid,
-        'arg': $.map(cw.utils.sliceList(arguments, 2), jQuery.toJSON)
+        'arg': $.map(cw.utils.sliceList(arguments, 2), JSON.stringify)
     });
     return form;
 }
@@ -745,7 +745,7 @@
     var props = {
         fname: fname,
         pageid: pageid,
-        arg: $.map(cw.utils.sliceList(arguments, 1), jQuery.toJSON)
+        arg: $.map(cw.utils.sliceList(arguments, 1), JSON.stringify)
     };
     var result = jQuery.ajax({
         url: AJAX_BASE_URL,
@@ -765,7 +765,7 @@
     var props = {
         fname: fname,
         pageid: pageid,
-        arg: $.map(cw.utils.sliceList(arguments, 1), jQuery.toJSON)
+        arg: $.map(cw.utils.sliceList(arguments, 1), JSON.stringify)
     };
     // XXX we should inline the content of loadRemote here
     var deferred = loadRemote(AJAX_BASE_URL, props, 'POST');