[web] remove unused argument from treeview._init_headers
authorJulien Cristau <julien.cristau@logilab.fr>
Wed, 22 Oct 2014 14:16:47 +0200
changeset 10082 aa63a8e8c213
parent 10081 f1baed9ccf0d
child 10083 afc5615aa92b
[web] remove unused argument from treeview._init_headers
web/views/treeview.py
--- 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)