Browse Source

Replace error messages properly

Andrew Kane 8 năm trước cách đây
mục cha
commit
e00fe585ba
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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() {