web/data/cubicweb.edition.js
changeset 3998 94cc7cad3d2d
parent 3947 8d06bce45c02
child 4217 bf2811a17a17
child 4239 bce7a7a95f2b
equal deleted inserted replaced
3895:92ead039d3d0 3998:94cc7cad3d2d
   268 }
   268 }
   269 
   269 
   270 /*
   270 /*
   271  * removes the part of the form used to edit an inlined entity
   271  * removes the part of the form used to edit an inlined entity
   272  */
   272  */
   273 function removeInlineForm(peid, rtype, eid) {
   273 function removeInlineForm(peid, rtype, eid, showaddnewlink) {
   274     jqNode(['div', peid, rtype, eid].join('-')).slideUp('fast', function() {
   274     jqNode(['div', peid, rtype, eid].join('-')).slideUp('fast', function() {
   275 	$(this).remove();
   275 	$(this).remove();
   276 	updateInlinedEntitiesCounters(rtype);
   276 	updateInlinedEntitiesCounters(rtype);
   277     });
   277     });
       
   278     if (showaddnewlink) {
       
   279 	toggleVisibility(showaddnewlink);
       
   280     }
   278 }
   281 }
   279 
   282 
   280 /*
   283 /*
   281  * alternatively adds or removes the hidden input that make the
   284  * alternatively adds or removes the hidden input that make the
   282  * edition of the relation `rtype` possible between `peid` and `eid`
   285  * edition of the relation `rtype` possible between `peid` and `eid`