[web/component] Use global variable to point to ajax controller (part of #2758254)
--- 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):