Show blocked api response when reopening notes

This commit is contained in:
Anton Khorev 2024-01-07 19:19:57 +03:00
parent 3ea2c30c58
commit d1b58fb20e
3 changed files with 25 additions and 1 deletions

View file

@ -83,7 +83,7 @@ OSM.Note = function (map) {
}
function updateButtons(form) {
$(form.close).prop("disabled", false);
$(form).find("input[type=submit]").prop("disabled", false);
if ($(form.text).val() === "") {
$(form.close).val($(form.close).data("defaultActionText"));
$(form.comment).prop("disabled", true);