web/views/treeview.py
changeset 10082 aa63a8e8c213
parent 9256 697a8181ba30
child 10099 12f4f2509a38
--- a/web/views/treeview.py	Tue Oct 21 11:06:19 2014 +0200
+++ b/web/views/treeview.py	Wed Oct 22 14:16:47 2014 +0200
@@ -145,7 +145,7 @@
         toplevel = toplevel_thru_ajax or (initial_load and not form.get('fname'))
         return subvid, treeid, toplevel_thru_ajax, toplevel
 
-    def _init_headers(self, treeid, toplevel_thru_ajax):
+    def _init_headers(self, treeid):
         self._cw.add_css('jquery.treeview.css')
         self._cw.add_js(('cubicweb.ajax.js', 'cubicweb.widgets.js', 'jquery.treeview.js'))
         self._cw.html_headers.add_onload(u"""
@@ -157,7 +157,7 @@
             subvid, treeid, initial_load, initial_thru_ajax, morekwargs)
         ulid = ' '
         if toplevel:
-            self._init_headers(treeid, toplevel_thru_ajax)
+            self._init_headers(treeid)
             ulid = ' id="tree-%s"' % treeid
         self.w(u'<ul%s class="%s">' % (ulid, self.cssclass))
         # XXX force sorting on x.sortvalue() (which return dc_title by default)