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 2015/01/29 19:07:01 UTC
incubator-nifi git commit: NIFI-250: - Addressing the border
visibility when toggling a reference block.
Repository: incubator-nifi
Updated Branches:
refs/heads/NIFI-250 b98a7220c -> 1ebaf1d29
NIFI-250:
- Addressing the border visibility when toggling a reference block.
Project: http://git-wip-us.apache.org/repos/asf/incubator-nifi/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-nifi/commit/1ebaf1d2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-nifi/tree/1ebaf1d2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-nifi/diff/1ebaf1d2
Branch: refs/heads/NIFI-250
Commit: 1ebaf1d29c7294b07f68def9d463c791f6d68cf9
Parents: b98a722
Author: Matt Gilman <ma...@gmail.com>
Authored: Thu Jan 29 13:06:54 2015 -0500
Committer: Matt Gilman <ma...@gmail.com>
Committed: Thu Jan 29 13:06:54 2015 -0500
----------------------------------------------------------------------
.../js/nf/canvas/nf-controller-service-configuration.js | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/1ebaf1d2/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-controller-service-configuration.js
----------------------------------------------------------------------
diff --git a/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-controller-service-configuration.js b/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-controller-service-configuration.js
index 64e5a23..08f7399 100644
--- a/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-controller-service-configuration.js
+++ b/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-controller-service-configuration.js
@@ -156,10 +156,12 @@ nf.ControllerServiceConfiguration = (function () {
/**
* Adds a border to the controller service references if necessary.
*/
- var showReferencesBorder = function () {
+ var updateReferencesBorder = function () {
var controllerServiceReferences = $('#controller-service-references');
if (controllerServiceReferences.is(':visible') && controllerServiceReferences.get(0).scrollHeight > controllerServiceReferences.innerHeight()) {
controllerServiceReferences.css('border-width', '1px');
+ } else {
+ controllerServiceReferences.css('border-width', '0px');
}
};
@@ -223,7 +225,7 @@ nf.ControllerServiceConfiguration = (function () {
toggle(twist, list);
// update the border if necessary
- showReferencesBorder();
+ updateReferencesBorder();
}).append(twist).append(title).append(count).appendTo(controllerServiceReferences);
// show message for empty list
@@ -241,7 +243,7 @@ nf.ControllerServiceConfiguration = (function () {
createReferenceBlock('Reporting Tasks', tasks);
// update the border if necessary
- showReferencesBorder();
+ updateReferencesBorder();
};
/**
@@ -282,7 +284,7 @@ nf.ControllerServiceConfiguration = (function () {
$('#controller-service-properties').propertytable('saveRow');
// show the border around the processor relationships if necessary
- showReferencesBorder();
+ updateReferencesBorder();
}
});
@@ -508,7 +510,7 @@ nf.ControllerServiceConfiguration = (function () {
$('#controller-service-configuration').modal('show');
// show the border if necessary
- showReferencesBorder();
+ updateReferencesBorder();
}).fail(nf.Common.handleAjaxError);
}
};