diff --git a/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/webapps/router/explorer.js b/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/webapps/router/explorer.js index 490c3934ad..cb16eac7b1 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/webapps/router/explorer.js +++ b/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/webapps/router/explorer.js @@ -108,7 +108,8 @@ */ function view_perm_details(e, filename, abs_path, perms) { $('.explorer-perm-links').popover('destroy'); - e.popover({html: true, content: $('#explorer-popover-perm-info').html(), trigger: 'focus'}) + setTimeout(function() { + e.popover({html: true,sanitize: false, content: $('#explorer-popover-perm-info').html(), trigger: 'focus'}) .on('shown.bs.popover', function(e) { var popover = $(this), parent = popover.parent(); //Convert octal to binary permissions @@ -122,6 +123,7 @@ }); }) .popover('show'); + }, 100); } // Use WebHDFS to set permissions on an absolute path diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.js b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.js index cbf9df9956..ea8b0accbd 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.js +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.js @@ -108,7 +108,8 @@ */ function view_perm_details(e, filename, abs_path, perms) { $('.explorer-perm-links').popover('destroy'); - e.popover({html: true, content: $('#explorer-popover-perm-info').html(), trigger: 'focus'}) + setTimeout(function() { + e.popover({html: true,sanitize: false, content: $('#explorer-popover-perm-info').html(), trigger: 'focus'}) .on('shown.bs.popover', function(e) { var popover = $(this), parent = popover.parent(); //Convert octal to binary permissions @@ -122,6 +123,7 @@ }); }) .popover('show'); + }, 100); } // Use WebHDFS to set permissions on an absolute path