Commit 54d2838c4561b35a01ffdbe59176df245118c736
Exists in
staging
and in
42 other branches
Merge commit 'refs/merge-requests/78' of git://gitorious.org/noosfero/noosfero i…
…nto merge-requests/78
Showing
1 changed file
with
7 additions
and
1 deletions
Show diff stats
plugins/shopping_cart/views/shopping_cart_plugin_profile/buy.html.erb
| ... | ... | @@ -22,7 +22,13 @@ |
| 22 | 22 | <script type="text/javascript"> |
| 23 | 23 | //<![CDATA[ |
| 24 | 24 | jQuery(document).ready(function(){ |
| 25 | - jQuery("#cart-request-form").validate(); | |
| 25 | + jQuery("#cart-request-form").validate({ | |
| 26 | + submitHandler: function(form) { | |
| 27 | + jQuery(form).find('input.submit').attr('disabled', true); | |
| 28 | + jQuery('#cboxLoadingOverlay').show().addClass('loading'); | |
| 29 | + jQuery('#cboxLoadingGraphic').show().addClass('loading'); | |
| 30 | + } | |
| 31 | + }); | |
| 26 | 32 | }); |
| 27 | 33 | //]]> |
| 28 | 34 | </script> | ... | ... |