You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by mc...@apache.org on 2016/12/13 14:42:17 UTC
nifi git commit: [NIFI-3159] Add ellipsis to long PG name in access
policies shell. This closes #1310
Repository: nifi
Updated Branches:
refs/heads/master 45e4514a4 -> 868795cda
[NIFI-3159] Add ellipsis to long PG name in access policies shell. This closes #1310
Project: http://git-wip-us.apache.org/repos/asf/nifi/repo
Commit: http://git-wip-us.apache.org/repos/asf/nifi/commit/868795cd
Tree: http://git-wip-us.apache.org/repos/asf/nifi/tree/868795cd
Diff: http://git-wip-us.apache.org/repos/asf/nifi/diff/868795cd
Branch: refs/heads/master
Commit: 868795cdaafbbba75432bcc2ec7e88110722db56
Parents: 45e4514
Author: Scott Aslan <sc...@gmail.com>
Authored: Tue Dec 13 09:09:15 2016 -0500
Committer: Matt Gilman <ma...@gmail.com>
Committed: Tue Dec 13 09:41:31 2016 -0500
----------------------------------------------------------------------
.../webapp/js/nf/canvas/nf-policy-management.js | 29 ++++++++++++--------
1 file changed, 17 insertions(+), 12 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/nifi/blob/868795cd/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-policy-management.js
----------------------------------------------------------------------
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 b2f95ba..26e32de 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 $('<span>Showing effective policy inherited from Process Group </span>').append($('<span class="link"></span>').text(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);
-
- // inform Angular app that values have changed
- nf.ng.Bridge.digest();
- });
- })).append('<span>.</span>');
+ return $('<span>Showing effective policy inherited from Process Group </span>')
+ .append( $('<span class="link ellipsis" style="max-width: 200px; vertical-align: top;"></span>')
+ .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);
+
+ // inform Angular app that values have changed
+ nf.ng.Bridge.digest();
+ });
+ })
+ ).append('<span>.</span>');
}
};