equal
deleted
inserted
replaced
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): |