Functions dedicated to edition.
organization: Logilab copyright: 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved. contact: http://www.logilab.fr/ – mailto:contact@logilab.fr
called on CWProperty key selection: - get the selected value - get a widget according to the key by a sync query to the server - fill associated div with the returned html
this function is called when an AJAX form was generated to make sure tabindex remains consistent
this function builds a Handle to cancel pending insertion
this function builds a Handle to cancel pending insertion
makes an AJAX request to get an inline-creation view’s content * peid, the parent entity eid
removes the part of the form used to edit an inlined entity
alternatively adds or removes the hidden input that make the edition of the relation rtype possible between peid and eid * peid, the parent entity eid
unfreeze form buttons when the validation process is over
disable form buttons while the validation is being done
used by additional submit buttons to remember which button was clicked
called on load to set target and iframeso object.
Note
This was a hack to make form loop handling XHTML compliant. Since we do not care about xhtml any longer, this may go away.
Note
object nodes might be a potential replacement for iframes
Note
The form’s target attribute should probably become a simple data-target immediately generated server-side. Since we don’t do xhtml any longer, the iframe should probably be either reconsidered or at least emitted server-side.
called on traditionnal form submission : the idea is to try to post the form. If the post is successful, validateForm redirects to the appropriate URL. Otherwise, the validation errors are displayed around the corresponding input fields.