From 55b612e24422aed22b14e49cc196b5cf1e3ad42a Mon Sep 17 00:00:00 2001 From: ablwr Date: Sun, 7 Sep 2014 10:34:41 -0400 Subject: [PATCH] debugged hidden div in unused render field, jquery working now --- app/assets/javascripts/forms.js | 23 ++++++++++++++--------- app/views/forms/_web.html.erb | 4 +--- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/app/assets/javascripts/forms.js b/app/assets/javascripts/forms.js index 8ea163e..0f9f75b 100644 --- a/app/assets/javascripts/forms.js +++ b/app/assets/javascripts/forms.js @@ -5,33 +5,38 @@ $(document).ready(function() { }); $( "#show_display_info" ).click(function() { - $( ".display_info" ).toggle(); - $( ".add_subtitles").hide(); - + $( "#formloader > div" ).hide(); + $( ".display_info" ).show(); }); $( "#show_web" ).click(function() { - $( ".web" ).toggle(); + $( "#formloader > div" ).hide(); + $( ".web" ).show(); }); $( "#show_add_subtitles" ).click(function() { - $( ".add_subtitles" ).toggle(); + $( "#formloader > div" ).hide(); + $( ".add_subtitles" ).show(); }); $( "#show_add_audio_track" ).click(function() { - $( ".add_audio_track" ).toggle(); + $( "#formloader > div" ).hide(); + $( ".add_audio_track" ).show(); }); $( "#show_remove_audio_track" ).click(function() { - $( ".remove_audio_track" ).toggle(); + $( "#formloader > div" ).hide(); + $( ".remove_audio_track" ).show(); }); $( "#show_webm_for_web" ).click(function() { - $( ".webm_for_web" ).toggle(); + $( "#formloader > div" ).hide(); + $( ".webm_for_web" ).show(); }); $( "#show_h264_for_web" ).click(function() { - $( ".h264_for_web" ).toggle(); + $( "#formloader > div" ).hide(); + $( ".h264_for_web" ).show(); }); diff --git a/app/views/forms/_web.html.erb b/app/views/forms/_web.html.erb index 74649e3..3760cc2 100644 --- a/app/views/forms/_web.html.erb +++ b/app/views/forms/_web.html.erb @@ -26,6 +26,4 @@ Your command line: - - - \ No newline at end of file + \ No newline at end of file