You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by ni...@apache.org on 2021/02/23 09:06:20 UTC

[atlas] 05/06: ATLAS-3186:UI Background navigation is possible when 'Advanced Search Queries' popup is active.

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

nixon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/atlas.git

commit f84993293127c2036667c8fbec30469d85e52991
Author: prasad pawar <pr...@freestoneinfotech.com>
AuthorDate: Fri Feb 19 10:51:19 2021 +0530

    ATLAS-3186:UI Background navigation is possible when 'Advanced Search Queries' popup is active.
---
 dashboardv2/public/js/utils/Helper.js | 5 ++++-
 dashboardv3/public/js/utils/Helper.js | 5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/dashboardv2/public/js/utils/Helper.js b/dashboardv2/public/js/utils/Helper.js
index b78077f..f211bd0 100644
--- a/dashboardv2/public/js/utils/Helper.js
+++ b/dashboardv2/public/js/utils/Helper.js
@@ -371,5 +371,8 @@ define(['require',
             container: 'body'
         });
     }
-
+    //For closing the modal on browsers navigation
+    $(window).on('popstate', function(){
+        $('body').find('.modal-dialog .close').click();
+    });
 })
\ No newline at end of file
diff --git a/dashboardv3/public/js/utils/Helper.js b/dashboardv3/public/js/utils/Helper.js
index ed2fcc0..04d3882 100644
--- a/dashboardv3/public/js/utils/Helper.js
+++ b/dashboardv3/public/js/utils/Helper.js
@@ -390,5 +390,8 @@ define(['require',
             container: 'body'
         });
     }
-
+    //For closing the modal on browsers navigation
+    $(window).on('popstate', function(){
+        $('body').find('.modal-dialog .close').click();
+    });
 })
\ No newline at end of file