Hi Bret and Team,
I've been asked by our operations team if there is a way to keep the current activities active until the location is changed. The reason is that they hope that data entry will be faster if they are able to just change a few activities check elements between adding counts.
Maybe this would be a two-step process. First remove the code that clears the checked elements when a count is added to a locations. Second add new code that clears those elements when the location is changed.
1.
I think that this is the code in sum/web/js/spaceassess.js within the CountPeople function that clears the checked activities:
$("input.check:checked", countForm).each(function() {
countObj.activities.add(currentActivities[$(this).val()]);
}).prop("checked", false).button("refresh");
In particular the
.prop("checked", false).button("refresh")
part.
2. Not sure, I'll have to test, I might have to add check clearing code to this function:
$("div#loc_lists").on("click", "li.loc_item a", function() {
Anyway, I welcome any thought you have on the best way to go about this. Thanks much!