瀏覽代碼

Replace error messages properly

Andrew Kane 8 年之前
父節點
當前提交
e00fe585ba
共有 1 個文件被更改,包括 1 次插入1 次删除
  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) {
 $(document).on("ajax:error", "form", function(e, data, status, xhr) {
-  $("#errors").replaceWith(data.responseText);
+  $("#errors").html(data.responseText);
 });
 });
 
 
 function uuid() {
 function uuid() {