# HG changeset patch # User Sylvain Thénault # Date 1284719643 -7200 # Node ID e220f8b85f888d14fa67c2b3fe1d7322f18a32e7 # Parent 7bbdc3b6e9efeeeb890d79c1b2f5efa1634cfcaa [navigation] move hack from page_link to page_url so '#1251858: Can't see all the elements when a limited list is shown' if fixed as well diff -r 7bbdc3b6e9ef -r e220f8b85f88 web/component.py --- a/web/component.py Thu Sep 16 18:43:46 2010 +0200 +++ b/web/component.py Fri Sep 17 12:34:03 2010 +0200 @@ -147,6 +147,10 @@ url = self.ajax_page_url(**params) else: url = self._cw.build_url(path, **params) + # XXX hack to avoid opening a new page containing the evaluation of the + # js expression on ajax call + if url.startswith('javascript:'): + url += '; noop();' return url def ajax_page_url(self, **params): @@ -157,10 +161,6 @@ def page_link(self, path, params, start, stop, content): url = xml_escape(self.page_url(path, params, start, stop)) - # XXX hack to avoid opening a new page containing the evaluation of the - # js expression on ajax call - if url.startswith('javascript:'): - url += '; noop();' if start == self.starting_from: return self.selected_page_link_templ % (url, content, content) return self.page_link_templ % (url, content, content)