diff --git a/data/cubes.comment.js b/data/cubes.comment.js index a9af1f6db141b29fb706d1214592733e45be67da_ZGF0YS9jdWJlcy5jb21tZW50Lmpz..b7217c3c6902b3e70d28b04d899f180090efb4bb_ZGF0YS9jdWJlcy5jb21tZW50Lmpz 100644 --- a/data/cubes.comment.js +++ b/data/cubes.comment.js @@ -36,7 +36,7 @@ if (select) { format = firstSelected(select); } - d = async_remote_exec(funcname, eid, comment, format); + d = asyncRemoteExec(funcname, eid, comment, format); d.addCallback(function () { var rooteid = getNode('commentsectionComponent').getAttribute('cubicweb:rooteid'); reloadComponent('commentsection', rql_for_eid(rooteid), 'contentnavigation'); diff --git a/views.py b/views.py index a9af1f6db141b29fb706d1214592733e45be67da_dmlld3MucHk=..b7217c3c6902b3e70d28b04d899f180090efb4bb_dmlld3MucHk= 100644 --- a/views.py +++ b/views.py @@ -179,6 +179,7 @@ Button(stdmsgs.BUTTON_CANCEL, onclick=self.jsfunc % (jseid, ''))] form = self.vreg.select_object('forms', 'edition', self.req, + None, entity=newcomment, form_buttons=buttons, attrcategories=('primary',))