ソースを参照

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) {
-  $("#errors").replaceWith(data.responseText);
+  $("#errors").html(data.responseText);
 });
 
 function uuid() {