diff --git a/js/datatool.js b/js/datatool.js index f7e56ae..fe43890 100644 --- a/js/datatool.js +++ b/js/datatool.js @@ -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); @@ -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" } diff --git a/js/utils.js b/js/utils.js index af2a3dd..82e21c2 100644 --- a/js/utils.js +++ b/js/utils.js @@ -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(); @@ -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();