web/data/cubicweb.edition.js
branchstable
changeset 3327 44efba78afac
parent 3294 5047b2566634
child 3342 8b30ae9c4e67
equal deleted inserted replaced
3326:e3089ceee1ea 3327:44efba78afac
   241  * makes an AJAX request to get an inline-creation view's content
   241  * makes an AJAX request to get an inline-creation view's content
   242  * @param peid : the parent entity eid
   242  * @param peid : the parent entity eid
   243  * @param ttype : the target (inlined) entity type
   243  * @param ttype : the target (inlined) entity type
   244  * @param rtype : the relation type between both entities
   244  * @param rtype : the relation type between both entities
   245  */
   245  */
   246 function addInlineCreationForm(peid, ttype, rtype, role, insertBefore) {
   246 function addInlineCreationForm(peid, ttype, rtype, role, i18nctx, insertBefore) {
   247     insertBefore = insertBefore || getNode('add' + rtype + ':' + peid + 'link').parentNode;
   247     insertBefore = insertBefore || getNode('add' + rtype + ':' + peid + 'link').parentNode;
   248     var d = asyncRemoteExec('inline_creation_form', peid, ttype, rtype, role);
   248     var d = asyncRemoteExec('inline_creation_form', peid, ttype, rtype, role, i18nctx);
   249     d.addCallback(function (response) {
   249     d.addCallback(function (response) {
   250         var dom = getDomFromResponse(response);
   250         var dom = getDomFromResponse(response);
   251         preprocessAjaxLoad(null, dom);
   251         preprocessAjaxLoad(null, dom);
   252         var form = jQuery(dom);
   252         var form = jQuery(dom);
   253         form.css('display', 'none');
   253         form.css('display', 'none');