]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/richtext.js
Copy "From" endpoint value to search input when closing directions
[rails.git] / app / assets / javascripts / richtext.js
index 1576656eece0a21f91457a548a5c2b4279dc52f7..e069f6f88007cbfc4d732cac5ac08116b18bab49 100644 (file)
@@ -8,6 +8,10 @@ $(document).ready(function () {
     var container = $(this).closest(".richtext_container");
 
     container.find(".tab-pane[id$='_preview']").empty();
+  }).on("invalid", function () {
+    var container = $(this).closest(".richtext_container");
+
+    container.find("button[data-bs-target$='_edit']").tab("show");
   });
 
   /*