KYLIN-1716 fix
diff --git a/webapp/app/js/controllers/query.js b/webapp/app/js/controllers/query.js
index 5be4cd7..4301bbf 100644
--- a/webapp/app/js/controllers/query.js
+++ b/webapp/app/js/controllers/query.js
@@ -424,6 +424,7 @@
});
if (isExecuting && (next.replace(current, "").indexOf("#") != 0)) {
+ event.preventDefault();
SweetAlert.swal({
title: '',
text: "You've executing query in current page, are you sure to leave this page?",
@@ -433,8 +434,8 @@
confirmButtonText: "Yes",
closeOnConfirm: true
}, function(isConfirm) {
- if(!isConfirm){
- event.preventDefault();
+ if(isConfirm){
+ $location.path($location.url(next).hash());
}
});