Skip to content

Commit

Permalink
Fixing checks for betacode input
Browse files Browse the repository at this point in the history
  • Loading branch information
iccole committed Jan 14, 2025
1 parent 02d11e0 commit e688d9b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pn-site/js/guidesearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ $(document).ready(
$(this).off('focus');
$(this).off('keypress');
$(this).off('keyup');
var betaOn = $("#beta-on").attr("checked");
var betaOn = $("#beta-on").is(":checked");
colonFound = false;
var selectedRadios = [];

Expand Down Expand Up @@ -688,11 +688,11 @@ $(document).ready(

if($.cookie(hic.BETA_COOKIE) == "beta-on"){

$("#beta-on").attr("checked", "checked");
$("#beta-on").prop("checked", true);

} else {

$("#beta-on").removeAttr("checked");
$("#beta-on").prop("checked", false);

}

Expand All @@ -712,7 +712,7 @@ $(document).ready(
$("#beta-on").on("change", () => {

$(".stringsearch-top-controls:last .keyword").focus();
var beta = $(this).attr("checked") ? "beta-on" : "beta-off";
var beta = $(this).is(":checked") ? "beta-on" : "beta-off";
$.cookie(hic.BETA_COOKIE, beta);

});
Expand Down

0 comments on commit e688d9b

Please sign in to comment.