web/views/treeview.py
branchstable
changeset 2379 3fb9ceb5650f
parent 2312 af4d8f75c5db
child 2381 caad2367d940
equal deleted inserted replaced
2378:75af50d66b0a 2379:3fb9ceb5650f
    37             self.wview(self.itemvid, self.rset, row=rowidx, col=0,
    37             self.wview(self.itemvid, self.rset, row=rowidx, col=0,
    38                        vid=subvid, parentvid=self.id, treeid=treeid)
    38                        vid=subvid, parentvid=self.id, treeid=treeid)
    39         self.w(u'</ul>')
    39         self.w(u'</ul>')
    40         if initial_load and not self.req.form.get('fname'):
    40         if initial_load and not self.req.form.get('fname'):
    41             self.req.add_css('jquery.treeview.css')
    41             self.req.add_css('jquery.treeview.css')
    42             self.req.add_js(('cubicweb.ajax.js', 'jquery.treeview.js'))
    42             self.req.add_js(('cubicweb.ajax.js', 'cubicweb.widgets.js', 'jquery.treeview.js'))
    43             self.req.html_headers.add_onload(u"""
    43             self.req.html_headers.add_onload(u"""
    44 jQuery("#tree-%s").treeview({toggle: toggleTree, prerendered: true});""" % treeid)
    44 jQuery("#tree-%s").treeview({toggle: toggleTree, prerendered: true});""" % treeid)
    45 
    45 
    46 
    46 
    47 class FileTreeView(TreeView):
    47 class FileTreeView(TreeView):