|
|
@ -47,14 +47,14 @@ class ch_selectivedisplay extends ch_yesno |
|
|
|
$(function() { |
|
|
|
$(function() { |
|
|
|
var hideQuestion = false; |
|
|
|
var hideQuestion = false; |
|
|
|
$(".survey_question").each(function() { |
|
|
|
$(".survey_question").each(function() { |
|
|
|
|
|
|
|
var questionClass = $(this).attr("class").trim(); |
|
|
|
if (hideQuestion) { |
|
|
|
if (hideQuestion) { |
|
|
|
$(this).hide(); |
|
|
|
$(this).hide(); |
|
|
|
if ($(this).attr("class") === "survey_question ch_selectivedisplay") { |
|
|
|
if (questionClass === "survey_question ch_selectivedisplay") { |
|
|
|
$(this).show(); |
|
|
|
$(this).show(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (questionClass === "survey_question ch_selectivedisplay") { |
|
|
|
if ($( this ).attr("class") === "survey_question ch_selectivedisplay") { |
|
|
|
|
|
|
|
hideQuestion = true; |
|
|
|
hideQuestion = true; |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|