Minor - fix class validation BT#17113

pull/3293/head
Julio Montoya 5 years ago
parent 8b077e0ac1
commit 76f662fed1
  1. 6
      main/survey/ch_selectivedisplay.php

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

Loading…
Cancel
Save