Skip to content
Snippets Groups Projects
Commit 6cab9d22395a authored by Adrien Di Mascio's avatar Adrien Di Mascio
Browse files

use the new css and js naming convention

parent 0e6ac96212d7
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,7 @@
accepts = ('Comment',)
def cell_call(self, row, col):
self.req.add_css('cubicweb.comment.css')
self.req.add_css('cubes.comment.css')
entity = self.complete_entity(row, col)
# display text, author and creation date
self.w(u'<div class="comment">')
......@@ -85,8 +85,8 @@
def cell_call(self, row, col, **kwargs):
_ = self.req._
self.req.add_js('ajax.js') # XXXFIXME cubicweb.ajax.js
self.req.add_css('cubicweb.comment.css')
self.req.add_js('cubicweb.ajax.js')
self.req.add_css('cubes.comment.css')
entity = self.entity(row, col)
diem = self.format_date(entity.creation_date)
action = self.vreg.select_action('reply_comment', self.req, self.rset, row)
......@@ -158,7 +158,7 @@
</div>
"""
def call(self, commented):
self.req.add_js('cubicweb.comment.js')
self.req.add_js('cubes.comment.js')
newcomment = self.vreg.etype_class('Comment')(self.req, None, None)
newcomment.eid = 'INLINE'
# hack to avoid tabindex conflicts caused by Ajax requests
......@@ -195,7 +195,7 @@
</div>
"""
def cell_call(self, row, col):
self.req.add_js(['ajax.js', 'cubicweb.comment.js']) # XXXFIXME
self.req.add_js( ('cubicweb.ajax.js', 'cubes.comment.js') )
# hack to avoid tabindex conflicts caused by Ajax request
self.req.next_tabindex = count(20).next
comment = self.entity(row, col)
......@@ -231,7 +231,7 @@
def call(self, view=None, orderby='diem'):
req = self.req
req.add_js(['ajax.js', 'cubicweb.comment.js'])
req.add_js( ('cubicweb.ajax.js', 'cubes.comment.js') )
eid = self.rset[0][0]
if orderby == 'author':
rql = u'Any C,CD,CC,CCF,U,UL,US,UF ORDERBY UL WHERE C is Comment, '\
......@@ -250,7 +250,7 @@
reply = u' (<a href="%s">%s</a>)' % (url, req._(action.title))
if req.property_value('ui.fckeditor') and \
req.property_value('ui.default-text-format') == 'text/html':
req.add_js(['fckeditor.js'])
req.add_js('fckeditor.js')
req.fckeditor_config()
else:
reply = u''
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment