StatViewServlet: add confirm for reset all

This commit is contained in:
sand
2012-08-03 11:13:36 +08:00
parent 5d7efc609d
commit 83a03779fa
@@ -44,6 +44,9 @@ function getRequestObject(){
function ajaxRequestForReset() {
if(!confirm("Are you sure to reset all stat? It'll clear all stat data !")){
return;
}
xmlHttpForReset = getRequestObject();
sendRequest(xmlHttpForReset,'reset-all.json',ajaxResponseForReset)
}