web/request.py
changeset 7536 29961a416faa
parent 7432 cab99ccdb774
parent 7515 e1ba23fdcf2d
child 7639 5c9e94a09e97
--- a/web/request.py	Fri Jun 17 18:50:13 2011 +0200
+++ b/web/request.py	Fri Jun 17 18:53:33 2011 +0200
@@ -624,8 +624,10 @@
         extraparams.setdefault('fname', 'view')
         url = self.build_url('json', **extraparams)
         cbname = build_cb_uid(url[:50])
+        # think to propagate pageid. XXX see https://www.cubicweb.org/ticket/1753121
         jscode = 'function %s() { $("#%s").%s; }' % (
-            cbname, nodeid, js.loadxhtml(url, None, 'get', replacemode))
+            cbname, nodeid, js.loadxhtml(url, {'pageid': self.pageid},
+                                         'get', replacemode))
         self.html_headers.add_post_inline_script(jscode)
         return "javascript: %s()" % cbname