streamline behaviour of component (trapped) forms with multiple submit buttons

this is because jquery can't know what button was pressed when the 
submit event is triggered. We circumvent it adding an hidden field before
triggering the submission

BTW: don't know why the commit seems huge. I just changed a bit the trap_form
function to handle the corner case and streamlined what disableElement, 
enableElement, disableFormElements, enableFormElements do, 
along with formInputClickSelector
This commit is contained in:
niphlod committed 2014-11-08 23:04:58 +01:00
1 parent 894babaed3
commit a6b50dcdcd
3 files changed
+1992 -1980

No files matched your search

File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff