|
|
@@ -14,9 +14,7 @@ const clearMarkers = key => {
|
|
|
};
|
|
|
|
|
|
$(function() {
|
|
|
-
|
|
|
- const $hideInactiveTestersSwitch = $("#hide-inactive-testers");
|
|
|
- $hideInactiveTestersSwitch.on("change", () => loadAllAddresses());
|
|
|
+ $("#hide-inactive-testers, #include-archived").on("change", () => loadAllAddresses());
|
|
|
|
|
|
const $customerRows = $("a[data-customer-id]");
|
|
|
|
|
|
@@ -270,9 +268,11 @@ function loadAllAddresses() {
|
|
|
|
|
|
const $allAddresses = $("a[data-all-addresses]");
|
|
|
const hideInactive = $("#hide-inactive-testers").prop("checked");
|
|
|
+ const includeArchived = $("#include-archived").prop("checked") ? 1 : 0;
|
|
|
|
|
|
$.get("/api/addresses/get-all", {
|
|
|
- submit: $("#submit").val()
|
|
|
+ submit: $("#submit").val(),
|
|
|
+ include_archived: includeArchived
|
|
|
}, function(response) {
|
|
|
if(!response.success) return false;
|
|
|
|