From 868795cdaafbbba75432bcc2ec7e88110722db56 Mon Sep 17 00:00:00 2001 From: Scott Aslan Date: Tue, 13 Dec 2016 09:09:15 -0500 Subject: [PATCH] [NIFI-3159] Add ellipsis to long PG name in access policies shell. This closes #1310 --- .../js/nf/canvas/nf-policy-management.js | 25 +++++++++++-------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-policy-management.js b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-policy-management.js index b2f95ba993..26e32de370 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-policy-management.js +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-policy-management.js @@ -759,18 +759,23 @@ nf.PolicyManagement = (function () { }); // build the mark up - return $('Showing effective policy inherited from Process Group ').append($('').text(processGroupName).on('click', function () { - // close the shell - $('#shell-close-button').click(); + return $('Showing effective policy inherited from Process Group ') + .append( $('') + .text(processGroupName) + .attr('title', processGroupName) + .on('click', function () { + // close the shell + $('#shell-close-button').click(); - // load the correct group and unselect everything if necessary - nf.CanvasUtils.enterGroup(processGroupId).done(function () { - nf.CanvasUtils.getSelection().classed('selected', false); + // load the correct group and unselect everything if necessary + nf.CanvasUtils.enterGroup(processGroupId).done(function () { + nf.CanvasUtils.getSelection().classed('selected', false); - // inform Angular app that values have changed - nf.ng.Bridge.digest(); - }); - })).append('.'); + // inform Angular app that values have changed + nf.ng.Bridge.digest(); + }); + }) + ).append('.'); } };