Browse Source

xielianghe

lange 5 năm trước cách đây
mục cha
commit
cc36bdb00b
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      whepi-ui/templates/home/ribao.js

+ 2 - 1
whepi-ui/templates/home/ribao.js

@@ -631,7 +631,8 @@ function addReport() {
     },
     success: function (data) {
       $.toast(data.msg);
-      document.getElementById("btn_shangbao").style['background-color'] = "#D9D9D9";
+      if (data.msg == "操作成功")
+        document.getElementById("btn_shangbao").style['background-color'] = "#D9D9D9";
     },
   });
 }