web/data/cubicweb.edition.js
branchstable
changeset 3947 8d06bce45c02
parent 3863 fe22502d4ab1
child 4217 bf2811a17a17
child 4239 bce7a7a95f2b
--- a/web/data/cubicweb.edition.js	Sun Nov 29 23:48:22 2009 +0100
+++ b/web/data/cubicweb.edition.js	Mon Nov 30 10:24:01 2009 +0100
@@ -270,11 +270,14 @@
 /*
  * removes the part of the form used to edit an inlined entity
  */
-function removeInlineForm(peid, rtype, eid) {
+function removeInlineForm(peid, rtype, eid, showaddnewlink) {
     jqNode(['div', peid, rtype, eid].join('-')).slideUp('fast', function() {
 	$(this).remove();
 	updateInlinedEntitiesCounters(rtype);
     });
+    if (showaddnewlink) {
+	toggleVisibility(showaddnewlink);
+    }
 }
 
 /*