web/request.py
changeset 7660 a1506b5306cc
parent 7639 5c9e94a09e97
child 7762 a3f9ba4d44eb
child 7793 8a330017ca4d
--- a/web/request.py	Tue Jul 12 14:04:42 2011 +0200
+++ b/web/request.py	Tue Jul 12 17:50:31 2011 +0200
@@ -625,7 +625,7 @@
         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; }' % (
+        jscode = u'function %s() { $("#%s").%s; }' % (
             cbname, nodeid, js.loadxhtml(url, {'pageid': self.pageid},
                                          'get', replacemode))
         self.html_headers.add_post_inline_script(jscode)