[views/table] use cubicweb.ajax.js for pagination
Else we fail in js-land on a "AJAX_PREFIX_URL is not defined".
Closes #3329072.
--- a/web/views/tableview.py Tue Dec 03 13:23:59 2013 +0100
+++ b/web/views/tableview.py Wed Nov 27 16:18:54 2013 +0100
@@ -446,6 +446,7 @@
handle_pagination = True
def call(self, **kwargs):
+ self._cw.add_js('cubicweb.ajax.js') # for pagination
self.layout_render(self.w)
def column_renderer(self, colid, *args, **kwargs):
@@ -621,7 +622,7 @@
else:
msg = '[3.14] %s argument is deprecated' % ', '.join(kwargs)
warn(msg, DeprecationWarning, stacklevel=2)
- self.layout_render(self.w)
+ super(RsetTableView, self).call(**kwargs)
def main_var_index(self):
"""returns the index of the first non-attribute variable among the RQL