This is an automated email from the ASF dual-hosted git repository.

nic pushed a commit to branch 2.6.x
in repository https://gitbox.apache.org/repos/asf/kylin.git

commit 32364bd10f6fb6604c9c0b34fb731a536e6d5845
Author: Xiaoyuan Gu <[email protected]>
AuthorDate: Thu Oct 10 18:53:39 2019 +0800

    KYLIN-1716 fix
---
 webapp/app/js/controllers/query.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

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 @@ KylinApp
             });
 
             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 @@ KylinApp
                     confirmButtonText: "Yes",
                     closeOnConfirm: true
                 }, function(isConfirm) {
-                    if(!isConfirm){
-                        event.preventDefault();
+                    if(isConfirm){
+                        $location.path($location.url(next).hash());
                     }
 
                 });

Reply via email to