CC-3052: Stream settings collapse when req. input is missing

- fixed. It was only handling error in the "Additional Input"
This commit is contained in:
james 2011-11-16 16:31:27 -05:00
parent 4820bb617b
commit 1b3d61913b
1 changed files with 6 additions and 3 deletions

View File

@ -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);
}
}
});
}