equal
deleted
inserted
replaced
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` |