Przeglądaj źródła

Replace error messages properly

Andrew Kane 8 lat temu
rodzic
commit
e00fe585ba
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      app/assets/javascripts/blazer/application.js

+ 1 - 1
app/assets/javascripts/blazer/application.js

@@ -38,7 +38,7 @@ $(document).on("click", "#code", function () {
 });
 
 $(document).on("ajax:error", "form", function(e, data, status, xhr) {
-  $("#errors").replaceWith(data.responseText);
+  $("#errors").html(data.responseText);
 });
 
 function uuid() {