From f8115e0f5925f998bfada63d89c4fc78f1a61a3f Mon Sep 17 00:00:00 2001 From: Fernando Brito Date: Thu, 5 Jun 2014 01:21:44 -0300 Subject: [PATCH] [Wizard] Hidding some stuff on finished --- app/assets/javascripts/v_libras/requests/new.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/v_libras/requests/new.js b/app/assets/javascripts/v_libras/requests/new.js index de53455..c9e9573 100644 --- a/app/assets/javascripts/v_libras/requests/new.js +++ b/app/assets/javascripts/v_libras/requests/new.js @@ -27,6 +27,8 @@ $(function () { if ((priorIndex === 0) && (currentIndex === 1)) { videojs($("#video-step").find("video")[0]).pause(); videojs($("#service-step").find("video")[0]).play(); + + $("#menu").hide(); } if ((priorIndex === 1) && (currentIndex === 2)) { @@ -50,8 +52,10 @@ $(function () { function finished(event, currentIndex) { $("#vlibras-wizard .content").hide(); + $("#vlibras-wizard .steps").hide(); + $("#menu").show(); $("#vlibras-form").submit(); - $("#btn-next").text("Enviando..."); + $("#btn-next").text("Enviando... Aguarde, por favor."); deactivateNextButton(); } @@ -105,6 +109,7 @@ $(function () { $("#vlibras-form").addHidden('service', 'video-legenda'); $("#subtitle-upload").parent().parent().show(); + $("#menu").show(); $('html, body').animate({ scrollTop: $("#subtitle-upload").offset().top -- libgit2 0.21.2