]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/note.js
Merge remote-tracking branch 'upstream/pull/4873'
[rails.git] / app / assets / javascripts / index / note.js
index 0c0be716b4bba5e5c46d1ef0537e9fd422a55eef..15fedb1d113b52bbd8d402427af3d38c8c7f23ed 100644 (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);