[web/component] Use global variable to point to ajax controller (part of #2758254) stable
authorRémi Cardona <remi.cardona@logilab.fr>
Wed, 13 Mar 2013 19:23:22 +0100
branchstable
changeset 8729 ea3fc8e1edee
parent 8728 75be9de9d68e
child 8730 d4d9f33fd01b
[web/component] Use global variable to point to ajax controller (part of #2758254)
web/component.py
--- a/web/component.py	Tue Mar 19 12:24:40 2013 +0100
+++ b/web/component.py	Wed Mar 13 19:23:22 2013 +0100
@@ -123,7 +123,7 @@
     def ajax_page_url(self, **params):
         divid = params.setdefault('divid', 'pageContent')
         params['rql'] = self.cw_rset.printable_rql()
-        return js_href("$(%s).loadxhtml('ajax', %s, 'get', 'swap')" % (
+        return js_href("$(%s).loadxhtml(AJAX_PREFIX_URL, %s, 'get', 'swap')" % (
             json_dumps('#'+divid), js.ajaxFuncArgs('view', params)))
 
     def page_link(self, path, params, start, stop, content):