You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by me...@apache.org on 2020/09/18 13:58:24 UTC
[ranger] branch master updated: RANGER-3002 : Query info popup
stuck in Ranger access audits view
This is an automated email from the ASF dual-hosted git repository.
mehul pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ranger.git
The following commit(s) were added to refs/heads/master by this push:
new 54415ed RANGER-3002 : Query info popup stuck in Ranger access audits view
54415ed is described below
commit 54415ede5feb0da4903f71a8e47461c6217f532e
Author: Nitin Galave <ni...@apache.org>
AuthorDate: Thu Sep 17 17:40:23 2020 +0530
RANGER-3002 : Query info popup stuck in Ranger access audits view
Signed-off-by: Mehul Parikh <me...@apache.org>
---
security-admin/src/main/webapp/scripts/utils/XAViewUtils.js | 6 ++++--
security-admin/src/main/webapp/styles/xa.css | 7 ++++++-
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/security-admin/src/main/webapp/scripts/utils/XAViewUtils.js b/security-admin/src/main/webapp/scripts/utils/XAViewUtils.js
index 02aaffc..8b67452 100644
--- a/security-admin/src/main/webapp/scripts/utils/XAViewUtils.js
+++ b/security-admin/src/main/webapp/scripts/utils/XAViewUtils.js
@@ -76,14 +76,16 @@ define(function(require) {
var $elements = that.$el.find('table [data-name = "queryInfo"][data-id = "'+model.id+'"]');
$elements.popover({
html: true,
- title:'<b>' + (titleMap[model.get('serviceType')] || 'Request Data') + '</b>' +
- '<button type="button" id="queryInfoClose" class="close closeBtn" onclick="$(".queryInfo").popover("hide");">×</button>',
+ title: '<b class="custom-title">'+ (titleMap[model.get('serviceType')] || 'Request Data') +'</b><a href="javascript:void(0)" class="close popoverClose">×</a>',
content: msg,
selector : true,
container:'body',
placement: 'top'
}).on("click", function(e){
e.stopPropagation();
+ $('.popoverClose').on("click", function(){
+ $(this).parents(".popover").popover('hide');
+ });
if($(e.target).data('toggle') !== 'popover' && $(e.target).parents('.popover.in').length === 0){
$('.queryInfo').not(this).popover('hide');
$('.copyQuery').on("click", function(e){
diff --git a/security-admin/src/main/webapp/styles/xa.css b/security-admin/src/main/webapp/styles/xa.css
index 0823649..521b940 100644
--- a/security-admin/src/main/webapp/styles/xa.css
+++ b/security-admin/src/main/webapp/styles/xa.css
@@ -4446,7 +4446,12 @@ input.textFiledInputPadding:disabled {
.modal-body {
overflow-y: auto;
}
-/*[fieldclass="resorces-css"] .control-label {
+
+.popover-header .close{
+ position: relative;
+ bottom: 6px;
+ cursor: pointer;
+}/*[fieldclass="resorces-css"] .control-label {
margin-top: 0px;
margin-right: -15px
}*/