索隆 6 年 前
コミット
7e4963474a
共有1 個のファイルを変更した2 個の追加1 個の削除を含む
  1. 2 1
      js/prediction.js

+ 2 - 1
js/prediction.js

@@ -25,7 +25,8 @@ function updateStatus(obj, id){
25
 		ajax(apiUrl+"forecast/frame",{"forecastId": id,"onFrame": status},function(res){
25
 		ajax(apiUrl+"forecast/frame",{"forecastId": id,"onFrame": status},function(res){
26
 			if(res.code == 1){
26
 			if(res.code == 1){
27
 				$(obj).text(statusTxt);
27
 				$(obj).text(statusTxt);
28
-				$(obj).data("status",status == -1 ? 0 : -1);
28
+				$(obj).data("status", (status == -1 ? 0 : -1));
29
+				console.log($(obj).data());
29
 			}
30
 			}
30
 		});
31
 		});
31
 	});
32
 	});