Skip to content
Snippets Groups Projects
Commit a24796ae70e4 authored by sylvain thenault's avatar sylvain thenault
Browse files

implement cell_call

parent 434e5a30b61a
No related branches found
No related tags found
No related merge requests found
...@@ -233,6 +233,6 @@ ...@@ -233,6 +233,6 @@
target = 'subject' target = 'subject'
context = 'navcontentbottom' context = 'navcontentbottom'
def call(self, view=None, orderby='diem'): def cell_call(self, row, col, view=None, orderby='diem'):
req = self.req req = self.req
req.add_js( ('cubicweb.ajax.js', 'cubes.comment.js') ) req.add_js( ('cubicweb.ajax.js', 'cubes.comment.js') )
...@@ -237,6 +237,6 @@ ...@@ -237,6 +237,6 @@
req = self.req req = self.req
req.add_js( ('cubicweb.ajax.js', 'cubes.comment.js') ) req.add_js( ('cubicweb.ajax.js', 'cubes.comment.js') )
eid = self.rset[0][0] eid = self.rset[row][col]
self.w(u'<div id="%s" class="%s" cubicweb:rooteid="%s">' % ( self.w(u'<div id="%s" class="%s" cubicweb:rooteid="%s">' % (
self.div_id(), self.div_class(), eid)) self.div_id(), self.div_class(), eid))
action = self.vreg.select_action('reply_comment', req, self.rset, row=0) action = self.vreg.select_action('reply_comment', req, self.rset, row=0)
......
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