Browse Source

no message

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

+ 1 - 2
js/prediction.js

@@ -25,8 +25,7 @@ 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));
29
-				console.log($(obj).data());
28
+				$(obj).attr("data-status", (status == -1 ? 0 : -1));
30 29
 			}
31 30
 		});
32 31
 	});