web/views/tableview.py
branchstable
changeset 6249 1729f53b3e42
parent 6240 fd0cbb801007
child 6254 936e98213598
--- a/web/views/tableview.py	Wed Sep 15 17:17:51 2010 +0200
+++ b/web/views/tableview.py	Wed Sep 15 17:20:56 2010 +0200
@@ -187,14 +187,9 @@
 
     def page_navigation_url(self, navcomp, path, params):
         if hasattr(self, 'divid'):
-            divid = self.divid
-        else:
-            divid = params.get('divid', 'pageContent'),
-        rql = params.pop('rql', self.cw_rset.printable_rql())
-        # latest 'true' used for 'swap' mode
-        return 'javascript: replacePageChunk(%s, %s, %s, %s, true)' % (
-            json_dumps(divid), json_dumps(rql), json_dumps(self.__regid__),
-            json_dumps(params))
+            params['divid'] = self.divid
+        params['vid'] = self.__regid__
+        return navcomp.ajax_page_url(**params)
 
     def show_hide_actions(self, divid, currentlydisplayed=False):
         showhide = u';'.join(toggle_action('%s%s' % (divid, what))[11:]