Browse Source

no message

索隆 6 years ago
parent
commit
7e4963474a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      js/prediction.js

+ 2 - 1
js/prediction.js

@@ -25,7 +25,8 @@ function updateStatus(obj, id){
25 25
 		ajax(apiUrl+"forecast/frame",{"forecastId": id,"onFrame": status},function(res){
26 26
 			if(res.code == 1){
27 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
 	});