Exchange focus between home location delete/undelete buttons

This commit is contained in:
Anton Khorev 2023-08-10 03:24:25 +03:00
parent 0f3f3ead0a
commit 81ce6a7de0

View file

@ -96,6 +96,7 @@ $(document).ready(function () {
deleted_lat = lat;
deleted_lon = lon;
respondToHomeUpdate();
$("#home_undelete").trigger("focus");
});
$("#home_undelete").click(function () {
@ -104,6 +105,7 @@ $(document).ready(function () {
deleted_lat = null;
deleted_lon = null;
respondToHomeUpdate();
$("#home_delete").trigger("focus");
});
} else {
$("[data-user]").each(function () {