README.txt in Hide submit button 7.2
Same filename and directory in other branches
OVERVIEW ======== Hide submit module provides a way to hide the submit button in forms after it has been clicked. This helps to prevent duplicate postings from people who accidentally double click (or triple click) on a submit button. The 7.x-2.x version of this module aims to be extremely lightweight yet extensible to handle all additional features. If you have an idea for additional features it probably should be contributed as a sub-module and, if necessary, a patch to the main module to make it alterable (e.g. via a hook_alter or theme_ function). CREDITS ======= The current version is based on block_submit module. The original hide_submit jQuery snippet was taken from Ted Serbinski's blog -http://tedserbinski.com/tags/jquery/how-prevent-duplicate-posts See also this discussion: http://drupal.org/node/107358 INSTALLING AND CONFIGURING ========================== Browse to admin/modules and enable the module. You can configure it at admin/config/content/hide-submit There are no module dependencies and no database tables created. Uninstalling the module will remove the variables created by the module. ADVANCED CHANGES ================ You can alter the style of affected buttons by overriding css rules. The two css style rules to consider are: div.hide-submit-disable - for disabled buttons. div.hide-submit-processing - for hidden buttons. There are two hidden variables for the values of the css classes. You can modify these by setting a variable in the $conf array in your settings.php or using the drush vset command. The variables are: hide_submit_css and hide_submit_hide_css. The module calls a hook (hook_hide_submit_alter) to let other modules modify the behavior of the module. This could be used, for example, to create a random image effect by tweaking the css styles on each page load. The hidden variable hide_submit_status allows a site to enable or disable the module. This is most useful as part of the hook_hide_submit_alter to disable the module on certain pages. See hide_submit.api.php for an example implementation of hook_hide_submit_alter.
File
README.txtView source
- OVERVIEW
- ========
- Hide submit module provides a way to hide the submit button in forms after
- it has been clicked. This helps to prevent duplicate postings from people who
- accidentally double click (or triple click) on a submit button.
-
- The 7.x-2.x version of this module aims to be extremely lightweight yet
- extensible to handle all additional features. If you have an idea for additional
- features it probably should be contributed as a sub-module and, if necessary,
- a patch to the main module to make it alterable (e.g. via a hook_alter or
- theme_ function).
-
- CREDITS
- =======
- The current version is based on block_submit module.
-
- The original hide_submit jQuery snippet was taken from Ted Serbinski's blog
- -http://tedserbinski.com/tags/jquery/how-prevent-duplicate-posts
-
- See also this discussion:
- http://drupal.org/node/107358
-
- INSTALLING AND CONFIGURING
- ==========================
- Browse to admin/modules and enable the module.
-
- You can configure it at admin/config/content/hide-submit
-
- There are no module dependencies and no database tables created.
-
- Uninstalling the module will remove the variables created by the module.
-
- ADVANCED CHANGES
- ================
- You can alter the style of affected buttons by overriding css rules. The two
- css style rules to consider are:
-
- div.hide-submit-disable - for disabled buttons.
- div.hide-submit-processing - for hidden buttons.
-
- There are two hidden variables for the values of the css classes. You can modify
- these by setting a variable in the $conf array in your settings.php or using the
- drush vset command. The variables are: hide_submit_css and hide_submit_hide_css.
-
- The module calls a hook (hook_hide_submit_alter) to let other modules modify the
- behavior of the module. This could be used, for example, to create a random
- image effect by tweaking the css styles on each page load.
-
- The hidden variable hide_submit_status allows a site to enable or disable the
- module. This is most useful as part of the hook_hide_submit_alter to disable
- the module on certain pages.
-
- See hide_submit.api.php for an example implementation of hook_hide_submit_alter.