[js] using the actual registry fixes spurious warnings stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 07 Feb 2011 19:17:14 +0100
branchstable
changeset 6947 3d72028a6cd4
parent 6940 1172c25655b7
child 6948 013f81b729de
child 6954 f9a84d54ebf3
[js] using the actual registry fixes spurious warnings
web/data/cubicweb.ajax.box.js
web/data/cubicweb.ajax.js
--- a/web/data/cubicweb.ajax.box.js	Sun Feb 06 11:33:04 2011 +0100
+++ b/web/data/cubicweb.ajax.box.js	Mon Feb 07 19:17:14 2011 +0100
@@ -16,7 +16,7 @@
     var d = loadRemote('json', ajaxFuncArgs(fname, null, eid, value));
     d.addCallback(function() {
             $('#' + holderid).empty();
-            var formparams = ajaxFuncArgs('render', null, 'boxes', boxid, eid);
+            var formparams = ajaxFuncArgs('render', null, 'ctxcomponents', boxid, eid);
             $('#' + cw.utils.domid(boxid) + eid).loadxhtml('json', formparams);
             if (msg) {
                 document.location.hash = '#header';
@@ -28,7 +28,7 @@
 function ajaxBoxRemoveLinkedEntity(boxid, eid, relatedeid, delfname, msg) {
     var d = loadRemote('json', ajaxFuncArgs(delfname, null, eid, relatedeid));
     d.addCallback(function() {
-            var formparams = ajaxFuncArgs('render', null, 'boxes', boxid, eid);
+            var formparams = ajaxFuncArgs('render', null, 'ctxcomponents', boxid, eid);
             $('#' + cw.utils.domid(boxid) + eid).loadxhtml('json', formparams);
             if (msg) {
                 document.location.hash = '#header';
--- a/web/data/cubicweb.ajax.js	Sun Feb 06 11:33:04 2011 +0100
+++ b/web/data/cubicweb.ajax.js	Mon Feb 07 19:17:14 2011 +0100
@@ -419,7 +419,7 @@
     var d = loadRemote('json', ajaxFuncArgs('delete_bookmark', null, beid));
     d.addCallback(function(boxcontent) {
         $('#bookmarks_box').loadxhtml('json',
-                                      ajaxFuncArgs('render', null, 'boxes',
+                                      ajaxFuncArgs('render', null, 'ctxcomponents',
                                                    'bookmarks_box'));
         document.location.hash = '#header';
         updateMessage(_("bookmark has been removed"));
@@ -633,7 +633,7 @@
 reloadBox = cw.utils.deprecatedFunction(
     '[3.9] reloadBox() is deprecated, use loadxhtml instead',
     function(boxid, rql) {
-        return reloadComponent(boxid, rql, 'boxes', boxid);
+        return reloadComponent(boxid, rql, 'ctxcomponents', boxid);
     }
 );