function updateResetButton() {
  var group = $("#selectGroup").serializeArray()[0]["value"].substring(5,6);
  if(group == "A") {
    $("#resetFilteringA").removeClass("noShow");
    $("#resetFilteringB").addClass("noShow");
  } else {
    $("#resetFilteringA").addClass("noShow");
    $("#resetFilteringB").removeClass("noShow");
  }
  $("#patientGroupLabel").html(group);
}
// Updates which resetFiltering-button that is visible. Also updates the buttons describing label.
Updates which resetFiltering-button that is visible. Also updates the buttons describing label.
Updates which resetFiltering - button that is visible . Also updates the buttons describing label .
function updateResetButton() {
  var group = $("#selectGroup").serializeArray()[0]["value"].substring(5,6);
  if(group == "A") {
    $("#resetFilteringA").removeClass("noShow");
    $("#resetFilteringB").addClass("noShow");
  } else {
    $("#resetFilteringA").addClass("noShow");
    $("#resetFilteringB").removeClass("noShow");
  }
  $("#patientGroupLabel").html(group);
}
function updateResetButton ( ) { var group = $ ( "#selectGroup" ) . serializeArray ( ) [ 0 ] [ "value" ] . substring ( 5 , 6 ) ; if ( group == "A" ) { $ ( "#resetFilteringA" ) . removeClass ( "noShow" ) ; $ ( "#resetFilteringB" ) . addClass ( "noShow" ) ; } else { $ ( "#resetFilteringA" ) . addClass ( "noShow" ) ; $ ( "#resetFilteringB" ) . removeClass ( "noShow" ) ; } $ ( "#patientGroupLabel" ) . html ( group ) ; }
Updates which resetFiltering-button that is visible.
Updates which resetFiltering - button that is visible .