# HG changeset patch # User Graziella Toutoungis <graziella.toutoungis@logilab.fr> # Date 1241438953 -7200 # Mon May 04 14:09:13 2009 +0200 # Branch tls-sprint # Node ID b7217c3c6902b3e70d28b04d899f180090efb4bb # Parent a9af1f6db141b29fb706d1214592733e45be67da fix a bug: the js method name miss an arg diff --git a/data/cubes.comment.js b/data/cubes.comment.js --- 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 --- 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',))