Skip to content
Snippets Groups Projects
Commit 96294d425e76 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

more api update

parent e4db834f9a38
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@
from logilab.mtconverter import xml_escape
from logilab.common.decorators import monkeypatch
from cubicweb.web import dumps
from cubicweb.utils import json_dumps
from cubicweb.selectors import (is_instance, has_permission, authenticated_user,
score_entity, relation_possible, one_line_rset,
......@@ -222,7 +222,7 @@
self.propose_to_login()
# hack to avoid tabindex conflicts caused by Ajax requests
self._cw.next_tabindex = count(20).next
jseid = dumps(commented.eid)
jseid = json_dumps(commented.eid)
buttons = [fw.Button(onclick=self.jsfunc % (jseid, 'false')),
fw.Button(stdmsgs.BUTTON_CANCEL,
onclick=self.jsfunc % (jseid, 'true'))]
......@@ -247,8 +247,7 @@
self.w(u'<div id="comment%sSlot">%s</div>' % (
commented.eid, form.render(formvalues=formvalues,
main_form_title=u'',
display_label=False,
display_relations_form=False)))
display_label=False)))
class InlineAddCommentFormView(InlineEditCommentFormView):
......
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