Commit bbef3f334b3341af445cf5381769ac60568ec285
1 parent
9a1204f4
Exists in
master
and in
2 other branches
On RapidVLibras, disable button
Showing
2 changed files
with
8 additions
and
2 deletions
Show diff stats
app/assets/javascripts/v_libras/requests/rapid.js
... | ... | @@ -4,6 +4,11 @@ $(function() { |
4 | 4 | $("#legend").hide('slow'); |
5 | 5 | }); |
6 | 6 | |
7 | + $("#vlibras-rapid").submit(function() { | |
8 | + $("#vlibras-rapid #submit-button").prop('disabled', true); | |
9 | + $("#vlibras-rapid #submit-button").attr("value", "Enviando..."); | |
10 | + }); | |
11 | + | |
7 | 12 | $("#service-video-subtitle").click(function() { |
8 | 13 | $("#url").show('slow'); |
9 | 14 | $("#legend").show('slow'); |
... | ... | @@ -46,3 +51,4 @@ $(function() { |
46 | 51 | return true; |
47 | 52 | } |
48 | 53 | }); |
54 | + | ... | ... |
app/views/v_libras/requests/rapid.haml
... | ... | @@ -2,7 +2,7 @@ |
2 | 2 | = javascript_include_tag "v_libras/requests/shared" |
3 | 3 | = javascript_include_tag "v_libras/requests/rapid" |
4 | 4 | |
5 | -.row-fluid | |
5 | +#vlibras-rapid.row-fluid | |
6 | 6 | .span4.offset4.login |
7 | 7 | %h2 |
8 | 8 | = t('videos.new') |
... | ... | @@ -51,5 +51,5 @@ |
51 | 51 | .field.hide |
52 | 52 | = label_tag 'params[transparencia]', t('videos.transparency'), :class => "bold" |
53 | 53 | = select_tag 'params[transparencia]', options_for_select([['Opaco', 'opaco'], ['Transparente', 'transparente']]) |
54 | - = submit_tag "Confirmar", :class => "btn btn-primary actions" | |
54 | + = submit_tag "Confirmar", :class => "btn btn-success btn-large actions", :id => 'submit-button' | |
55 | 55 | ... | ... |