[web] cubicweb.widgets.js was missing in treeview stable
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>
Wed, 15 Jul 2009 23:48:33 +0200
branchstable
changeset 2379 3fb9ceb5650f
parent 2378 75af50d66b0a
child 2380 5d980ba57632
[web] cubicweb.widgets.js was missing in treeview
web/views/treeview.py
--- a/web/views/treeview.py	Wed Jul 15 18:28:57 2009 +0200
+++ b/web/views/treeview.py	Wed Jul 15 23:48:33 2009 +0200
@@ -39,7 +39,7 @@
         self.w(u'</ul>')
         if initial_load and not self.req.form.get('fname'):
             self.req.add_css('jquery.treeview.css')
-            self.req.add_js(('cubicweb.ajax.js', 'jquery.treeview.js'))
+            self.req.add_js(('cubicweb.ajax.js', 'cubicweb.widgets.js', 'jquery.treeview.js'))
             self.req.html_headers.add_onload(u"""
 jQuery("#tree-%s").treeview({toggle: toggleTree, prerendered: true});""" % treeid)