My application needs to disable the save button after data is validated so we can avoid multiple submissions with same data to the server. I think this is a great feature that Xataface should have. I just added the following code after line 1785 in xataface/lib/HTML/QuickForm.php:
- Code: Select all
" var frmInputs = frm.getElementsByTagName('INPUT');\n" .
" for (var i=0; i< frmInputs.length; i++) {\n" .
" if (frmInputs[i].type == 'submit') { \n" .
" frmInputs[i].disabled = 'disabled';\n" .
" } \n" .
" }\n" .
The attachments are the QuickForm.php with the code above and the original one. Would you be able to include this feature into the framework after it's verified on your end so we don't have to worry about the upgrade later on?
Kevin