diff --git a/nar-bundles/framework-bundle/framework/web/nifi-web-ui/src/main/webapp/css/graph.css b/nar-bundles/framework-bundle/framework/web/nifi-web-ui/src/main/webapp/css/graph.css index fb03260137..041476b5e3 100644 --- a/nar-bundles/framework-bundle/framework/web/nifi-web-ui/src/main/webapp/css/graph.css +++ b/nar-bundles/framework-bundle/framework/web/nifi-web-ui/src/main/webapp/css/graph.css @@ -30,13 +30,10 @@ } .tooltip { + padding: 10px; display: none; position: absolute; - padding: 10px; z-index: 1000; - border: 3px solid #959FA9; - background-color: #F9F9F9; - color: #454545; } /* svg styles */ diff --git a/nar-bundles/framework-bundle/framework/web/nifi-web-ui/src/main/webapp/css/main.css b/nar-bundles/framework-bundle/framework/web/nifi-web-ui/src/main/webapp/css/main.css index e5c402a8f5..3afdc12b83 100644 --- a/nar-bundles/framework-bundle/framework/web/nifi-web-ui/src/main/webapp/css/main.css +++ b/nar-bundles/framework-bundle/framework/web/nifi-web-ui/src/main/webapp/css/main.css @@ -111,6 +111,12 @@ div.context-menu-item-text { font-weight: bold !important; } +div.nifi-tooltip { + border: 1px solid #454545; + background-color: #FFFFA3; + color: #454545; +} + .ellipsis { white-space: nowrap; overflow: hidden; diff --git a/nar-bundles/framework-bundle/framework/web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas-header.js b/nar-bundles/framework-bundle/framework/web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas-header.js index edd2000e57..03715e8d40 100644 --- a/nar-bundles/framework-bundle/framework/web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas-header.js +++ b/nar-bundles/framework-bundle/framework/web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas-header.js @@ -97,9 +97,9 @@ nf.CanvasHeader = (function () { }); // setup the tooltip for the refresh icon - $('#refresh-required-icon').qtip($.extend(nf.CanvasUtils.config.systemTooltipConfig, { + $('#refresh-required-icon').qtip($.extend({ content: 'This flow has been modified by another user. Please refresh.' - })); + }, nf.CanvasUtils.config.systemTooltipConfig)); // setup the refresh link actions $('#refresh-required-link').click(function () { diff --git a/nar-bundles/framework-bundle/framework/web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas-utils.js b/nar-bundles/framework-bundle/framework/web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas-utils.js index 00142c5a5a..40116ca663 100644 --- a/nar-bundles/framework-bundle/framework/web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas-utils.js +++ b/nar-bundles/framework-bundle/framework/web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas-utils.js @@ -50,30 +50,9 @@ nf.CanvasUtils = (function () { return { config: { - cellTooltipConfig: { - style: { - classes: 'ui-tooltip-tipped ui-tooltip-shadow' - }, - show: { - solo: true, - effect: false - }, - hide: { - effect: false - }, - position: { - target: 'mouse', - viewport: $(window), - adjust: { - x: 8, - y: 8, - method: 'flipinvert flipinvert' - } - } - }, systemTooltipConfig: { style: { - classes: 'ui-tooltip-tipped ui-tooltip-shadow' + classes: 'nifi-tooltip' }, show: { solo: true, @@ -444,7 +423,7 @@ nf.CanvasUtils = (function () { .attr('id', function () { return 'bulletin-tip-' + d.component.id; }) - .attr('class', 'tooltip') + .attr('class', 'tooltip nifi-tooltip') .html(function () { // format the bulletins var bulletins = nf.Common.getFormattedBulletins(d.status.bulletins); @@ -476,12 +455,12 @@ nf.CanvasUtils = (function () { target.on('mouseenter', function () { tip.style('top', (d3.event.pageY + 15) + 'px').style('left', (d3.event.pageX + 15) + 'px').style('display', 'block'); }) - .on('mousemove', function () { - tip.style('top', (d3.event.pageY + 15) + 'px').style('left', (d3.event.pageX + 15) + 'px'); - }) - .on('mouseleave', function () { - tip.style('display', 'none'); - }); + .on('mousemove', function () { + tip.style('top', (d3.event.pageY + 15) + 'px').style('left', (d3.event.pageX + 15) + 'px'); + }) + .on('mouseleave', function () { + tip.style('display', 'none'); + }); }, /** diff --git a/nar-bundles/framework-bundle/framework/web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas.js b/nar-bundles/framework-bundle/framework/web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas.js index c4798beadc..eb16ad90cd 100644 --- a/nar-bundles/framework-bundle/framework/web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas.js +++ b/nar-bundles/framework-bundle/framework/web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas.js @@ -695,9 +695,9 @@ nf.Canvas = (function () { bulletinIcon.qtip('option', 'content.text', newBulletins); } else { // no bulletins before, show icon and tips - bulletinIcon.addClass('has-bulletins').qtip($.extend(nf.CanvasUtils.config.systemTooltipConfig, { + bulletinIcon.addClass('has-bulletins').qtip($.extend({ content: newBulletins - })); + }, nf.CanvasUtils.config.systemTooltipConfig)); } // show the icon diff --git a/nar-bundles/framework-bundle/framework/web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-connection-configuration.js b/nar-bundles/framework-bundle/framework/web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-connection-configuration.js index ef387d66b2..fd70aa160f 100644 --- a/nar-bundles/framework-bundle/framework/web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-connection-configuration.js +++ b/nar-bundles/framework-bundle/framework/web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-connection-configuration.js @@ -1164,9 +1164,9 @@ nf.ConnectionConfiguration = (function () { // add the description if applicable if (nf.Common.isDefinedAndNotNull(prioritizerType.description)) { - $('').appendTo(prioritizer).qtip($.extend(nf.Common.config.tooltipConfig, { + $('').appendTo(prioritizer).qtip($.extend({ content: nf.Common.escapeHtml(prioritizerType.description) - })); + }, nf.Common.config.tooltipConfig)); } }, diff --git a/nar-bundles/framework-bundle/framework/web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-port.js b/nar-bundles/framework-bundle/framework/web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-port.js index 4eb365399d..ed584b8566 100644 --- a/nar-bundles/framework-bundle/framework/web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-port.js +++ b/nar-bundles/framework-bundle/framework/web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-port.js @@ -304,7 +304,7 @@ nf.Port = (function () { .attr('id', function () { return 'run-status-tip-' + d.component.id; }) - .attr('class', 'tooltip') + .attr('class', 'tooltip nifi-tooltip') .html(function () { var list = nf.Common.formatUnorderedList(d.component.validationErrors); if (list === null || list.length === 0) { diff --git a/nar-bundles/framework-bundle/framework/web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-processor-property-table.js b/nar-bundles/framework-bundle/framework/web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-processor-property-table.js index 3ffc17bde4..12a652c950 100644 --- a/nar-bundles/framework-bundle/framework/web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-processor-property-table.js +++ b/nar-bundles/framework-bundle/framework/web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-processor-property-table.js @@ -302,9 +302,9 @@ nf.ProcessorPropertyTable = (function () { var tooltip = nf.Common.formatPropertyTooltip(propertyDescriptor, propertyHistory); if (nf.Common.isDefinedAndNotNull(tooltip)) { - infoIcon.qtip($.extend(nf.Common.config.tooltipConfig, { + infoIcon.qtip($.extend({ content: tooltip - })); + }, nf.Common.config.tooltipConfig)); } } }); diff --git a/nar-bundles/framework-bundle/framework/web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-processor.js b/nar-bundles/framework-bundle/framework/web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-processor.js index 11bc106de8..be6ff1b215 100644 --- a/nar-bundles/framework-bundle/framework/web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-processor.js +++ b/nar-bundles/framework-bundle/framework/web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-processor.js @@ -437,7 +437,7 @@ nf.Processor = (function () { .attr('id', function () { return 'run-status-tip-' + d.component.id; }) - .attr('class', 'tooltip') + .attr('class', 'tooltip nifi-tooltip') .html(function () { var list = nf.Common.formatUnorderedList(d.component.validationErrors); if (list === null || list.length === 0) { diff --git a/nar-bundles/framework-bundle/framework/web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-remote-process-group-ports.js b/nar-bundles/framework-bundle/framework/web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-remote-process-group-ports.js index 7cce907ab5..caadfea188 100644 --- a/nar-bundles/framework-bundle/framework/web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-remote-process-group-ports.js +++ b/nar-bundles/framework-bundle/framework/web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-remote-process-group-ports.js @@ -231,9 +231,9 @@ nf.RemoteProcessGroupPorts = (function () { editRemotePort.show(); } } else if (port.exists === false) { - $('
').appendTo(portContainerEditContainer).qtip($.extend(nf.Common.config.tooltipConfig, { + $('').appendTo(portContainerEditContainer).qtip($.extend({ content: 'This port has been removed.' - })); + }, nf.Common.config.tooltipConfig)); } // only allow modifications to transmission when the swtich is defined @@ -364,13 +364,13 @@ nf.RemoteProcessGroupPorts = (function () { // add this ports concurrent tasks $('