# HG changeset patch # User Sylvain Thénault # Date 1297102634 -3600 # Node ID 3d72028a6cd4576f94af17607351c9c9b7c2d9da # Parent 1172c25655b7e90b60c5a1bbdcbba7fa4014ceb3 [js] using the actual registry fixes spurious warnings diff -r 1172c25655b7 -r 3d72028a6cd4 web/data/cubicweb.ajax.box.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'; diff -r 1172c25655b7 -r 3d72028a6cd4 web/data/cubicweb.ajax.js --- 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); } );