#1020: WebSubmit: disable (some) already pressed buttons
------------------------+-----------------------
Reporter: jcaffaro | Owner:
Type: enhancement | Status: new
Priority: minor | Component: WebSubmit
Version: | Keywords:
------------------------+-----------------------
It would seem necessary to disable some buttons once they have been
clicked: this helps confirming the users that their action has been taken
into account, and could prevent duplicate form submissions (either
accidental double-clicks, or "re-clicks" when the server does not answer
in a timely manner).
This behavior could be extended to other modules, but should not be
generalized to all cases, as it might not always apply. It would seem
sensible to update at least WebSubmit-related features:
* Document File Manager (''websubmit_managedocfiles.py''): upon upload of
a file (which can take some time...) in the yellow popover, and upon final
submission of the main form.
* In submissions: in file upload interface (would be already done if
''websubmit_managedocfile.py'' is updated). Also when submitting the main
form: in this case this should be configured by the admin, per submission,
as each submission possibly uses its own "Finish Submission" button
(''DEMOART_END'', ''DEMOBOO_END'', etc.). Still most of these buttons call
the Javascript "''finish();''" function (''websubmit_templates.py'') which
should be extended with a 'disable' parameter that would disable the form
element(s) passed as parameter upon successful validation of the form. For
eg. in DEMOART_END:
{{{
<div align="center">
<INPUT TYPE="button" onclick="finish(disable=this);" class="adminbutton"
name="endS" width="400" height="50" value="Finish Submission" >
</div>
}}}
--
Ticket URL: <http://invenio-software.org/ticket/1020>
Invenio <http://invenio-software.org>