From 1b3d61913b36f384efde4feb3637e3c6bc940c0e Mon Sep 17 00:00:00 2001 From: james Date: Wed, 16 Nov 2011 16:31:27 -0500 Subject: [PATCH] CC-3052: Stream settings collapse when req. input is missing - fixed. It was only handling error in the "Additional Input" --- .../public/js/airtime/preferences/streamsetting.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/airtime_mvc/public/js/airtime/preferences/streamsetting.js b/airtime_mvc/public/js/airtime/preferences/streamsetting.js index bf29514c2..277d1e34a 100644 --- a/airtime_mvc/public/js/airtime/preferences/streamsetting.js +++ b/airtime_mvc/public/js/airtime/preferences/streamsetting.js @@ -2,9 +2,12 @@ function showErrorSections() { $(".errors").each(function(i){ if($(this).length > 0){ - $(window).scrollTop($(this).closest("div").position().top); - $(this).closest("fieldset").removeClass('closed'); - return false; + var div = $(this).closest("div") + if(div.attr('class') == "stream-setting-content"){ + $(this).closest("div").show(); + $(this).closest("fieldset").removeClass('closed'); + $(window).scrollTop($(this).closest("div").position().top); + } } }); }