mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
StatViewServlet: add confirm for reset all
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user