web/views/navigation.py
branchstable
changeset 9525 8f3e963501e2
parent 9133 5f85e5ecbdb0
child 9528 7f3a3fc4a2a3
--- a/web/views/navigation.py	Wed Feb 05 15:50:36 2014 +0100
+++ b/web/views/navigation.py	Tue Feb 11 13:50:29 2014 +0100
@@ -55,6 +55,7 @@
 from logilab.mtconverter import xml_escape
 from logilab.common.deprecation import deprecated
 
+from cubicweb.utils import json_dumps
 from cubicweb.predicates import (paginated_rset, sorted_rset,
                                 adaptable, implements)
 from cubicweb.uilib import cut
@@ -281,6 +282,13 @@
     nav = req.vreg['components'].select_or_none(
         'navigation', req, rset=rset, page_size=page_size, view=view)
     if nav:
+        domid = getattr(view, 'domid', 'pageContent')
+        view._cw.add_onload('''
+        jQuery('div.displayAllLink a, div.pagination a').click(function() {
+            cw.jqNode(%s).loadxhtml(this.href, null, 'get', 'swap');
+            return false;
+        });
+            ''' % json_dumps(domid))
         if w is None:
             w = view.w
         if req.form.get('__force_display'):