Commit c7e42136c8c3a84161a339d3732a260e5f52a5ed
1 parent
f265dbf3
Exists in
master
and in
2 other branches
Replace alert() with console.debug()
Showing
2 changed files
with
9 additions
and
5 deletions
Show diff stats
app/assets/javascripts/v_libras/requests/new.js
... | ... | @@ -81,7 +81,7 @@ $(function () { |
81 | 81 | $("#vlibras-form").addHidden('params[transparencia]', 'opaco'); |
82 | 82 | $("#vlibras-wizard").steps('next'); |
83 | 83 | |
84 | - alert("Posição: " + $(this).data("value")); | |
84 | + console.debug("Posição: " + $(this).data("value")); | |
85 | 85 | |
86 | 86 | return false; |
87 | 87 | }); |
... | ... | @@ -90,7 +90,7 @@ $(function () { |
90 | 90 | $("#vlibras-form").addHidden('params[tamanho]', $(this).data("value")); |
91 | 91 | $("#vlibras-wizard").steps('finish'); |
92 | 92 | |
93 | - alert("Tamanho: " + $(this).data("value")); | |
93 | + console.debug("Tamanho: " + $(this).data("value")); | |
94 | 94 | |
95 | 95 | return false; |
96 | 96 | }); |
... | ... | @@ -100,16 +100,20 @@ $(function () { |
100 | 100 | * Service |
101 | 101 | */ |
102 | 102 | $("#vlibras-wizard").on("click", "#btn-video-legenda", function() { |
103 | - alert("Serviço: video-legenda"); | |
103 | + console.debug("Serviço: video-legenda"); | |
104 | 104 | |
105 | 105 | $("#vlibras-form").addHidden('service', 'video-legenda'); |
106 | 106 | $("#subtitle-upload").parent().show(); |
107 | 107 | |
108 | + $('html, body').animate({ | |
109 | + scrollTop: $("#subtitle-upload").offset().top | |
110 | + }, 1000); | |
111 | + | |
108 | 112 | return false; |
109 | 113 | }); |
110 | 114 | |
111 | 115 | $("#vlibras-wizard").on("click", "#btn-video", function() { |
112 | - alert("Serviço: video"); | |
116 | + console.debug("Serviço: video"); | |
113 | 117 | |
114 | 118 | $("#vlibras-wizard").steps('next'); |
115 | 119 | $("#vlibras-form").addHidden('service', 'video'); | ... | ... |
app/assets/javascripts/v_libras/videos/index.js.erb
... | ... | @@ -8,7 +8,7 @@ $(function() { |
8 | 8 | |
9 | 9 | // bind to a channel event |
10 | 10 | channel.bind('update', function(data) { |
11 | - alert("Um vídeo que estava em processamento está disponível. Sua página será atualizada automaticamente.") | |
11 | + /* alert("Um vídeo que estava em processamento está disponível. Sua página será atualizada automaticamente.") */ | |
12 | 12 | location.reload(); |
13 | 13 | }); |
14 | 14 | }); |
15 | 15 | \ No newline at end of file | ... | ... |