[views] fix typo in AddKeywordVComponent stable
authorDavid Douard <david.douard@logilab.fr>
Mon, 12 May 2014 10:57:08 +0200
branchstable
changeset 158 bafee3786043
parent 157 5dd235f08ead
child 159 55064599b7bd
[views] fix typo in AddKeywordVComponent
views.py
--- a/views.py	Wed May 07 15:14:36 2014 +0200
+++ b/views.py	Mon May 12 10:57:08 2014 +0200
@@ -160,7 +160,7 @@
     htmlclass = 'navigation'
 
     def entity_call(self, entity, view=None):
-        self.add_js(['cubicweb.widgets.js', 'cubes.keyword.js'])
+        self._cw.add_js(['cubicweb.widgets.js', 'cubes.keyword.js'])
         self._cw.add_css('cubicweb.suggest.css')
         self.w(u'<table><tr><td>')
         self.w(u'<a class="button sglink" href="javascript: showKeywordSelector(%s, \'%s\', \'%s\');">%s</a></td>' % (