Skip to content

Commit

Permalink
fix various NIBRS issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Your name committed Nov 2, 2024
1 parent b5f3f20 commit c9b72d4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions js/datatool.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,9 @@ function getCrimeColumns(headers, type, output) {
columnNames.push(category_value + "_american_indian_" + crime);
columnNames.push(category_value + "_black_" + crime);
columnNames.push(category_value + "_white_" + crime);
if ($('#category_dropdown').val() != "arrestee") {
// if ($('#category_dropdown').val() != "arrestee") {
columnNames.push(category_value + "_unknown_race_" + crime);
}
// }
}
if ($('#subcategory_dropdown').val() == "age") {
columnNames.push(category_value + "_adult_" + crime);
Expand All @@ -311,9 +311,9 @@ function getCrimeColumns(headers, type, output) {
if ($('#subcategory_dropdown').val() == "ethnicity") {
columnNames.push(category_value + "_hispanic_" + crime);
columnNames.push(category_value + "_not_hispanic_" + crime);
if ($('#category_dropdown').val() != "arrestee") {
// if ($('#category_dropdown').val() != "arrestee") {
columnNames.push(category_value + "_unknown_ethnicity_" + crime);
}
// }
}
crime = "hellodarknessmyoldfriend"
}
Expand Down
22 changes: 11 additions & 11 deletions js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,12 +314,12 @@ function toggle_nibrs_display() {
$("label[for='checkbox_4']").html("Black")
$("label[for='checkbox_5']").html("White")
$("label[for='checkbox_6']").html("Unknown")
if ($('#category_dropdown').val() == "arrestee") {
$("#checkbox_6").hide();
$("#checkbox_7").hide();
$("label[for='checkbox_6']").hide()
$("label[for='checkbox_7']").hide()
}
// if ($('#category_dropdown').val() == "arrestee") {
// $("#checkbox_6").hide();
// $("#checkbox_7").hide();
// $("label[for='checkbox_6']").hide()
// $("label[for='checkbox_7']").hide()
// }
} else if ($("#subcategory_dropdown").val() == "ethnicity") {
$("#checkbox_5").hide();
$("#checkbox_6").hide();
Expand All @@ -332,11 +332,11 @@ function toggle_nibrs_display() {
$("label[for='checkbox_2']").html("Hispanic")
$("label[for='checkbox_3']").html("Non-Hispanic")
$("label[for='checkbox_4']").html("Unknown")
if ($('#category_dropdown').val() == "arrestee") {
$("label[for='checkbox_3']").html("Not Hispanic")
$("#checkbox_4").hide();
$("label[for='checkbox_4']").hide()
}
// if ($('#category_dropdown').val() == "arrestee") {
// $("label[for='checkbox_3']").html("Not Hispanic")
// $("#checkbox_4").hide();
// $("label[for='checkbox_4']").hide()
// }
} else if ($("#subcategory_dropdown").val() == "sex") {
$("#checkbox_5").hide();
$("#checkbox_6").hide();
Expand Down

0 comments on commit c9b72d4

Please sign in to comment.