nifi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcgil...@apache.org
Subject nifi git commit: [NIFI-1757] remove iframe from shell dialog to prevent reoccurring requests, update fill color and label config dialog content margins to fit into their respective dialogs. This closes #1069
Date Tue, 27 Sep 2016 19:38:35 GMT
Repository: nifi
Updated Branches:
  refs/heads/master d674cdfc7 -> c4826cac5


[NIFI-1757] remove iframe from shell dialog to prevent reoccurring requests, update fill color
and label config dialog content margins to fit into their respective dialogs. This closes
#1069


Project: http://git-wip-us.apache.org/repos/asf/nifi/repo
Commit: http://git-wip-us.apache.org/repos/asf/nifi/commit/c4826cac
Tree: http://git-wip-us.apache.org/repos/asf/nifi/tree/c4826cac
Diff: http://git-wip-us.apache.org/repos/asf/nifi/diff/c4826cac

Branch: refs/heads/master
Commit: c4826cac5417f3b1308f14aa1de9b426d1ae82be
Parents: d674cdf
Author: Scott Aslan <scottyaslan@gmail.com>
Authored: Mon Sep 26 21:51:29 2016 -0400
Committer: Matt Gilman <matt.c.gilman@gmail.com>
Committed: Tue Sep 27 15:38:10 2016 -0400

----------------------------------------------------------------------
 .../main/webapp/WEB-INF/partials/canvas/fill-color-dialog.jsp   | 2 +-
 .../main/webapp/WEB-INF/partials/canvas/label-configuration.jsp | 4 ++--
 .../src/main/webapp/js/nf/bulletin-board/nf-bulletin-board.js   | 2 +-
 .../nifi-web/nifi-web-ui/src/main/webapp/js/nf/nf-shell.js      | 5 ++---
 4 files changed, 6 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/nifi/blob/c4826cac/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/fill-color-dialog.jsp
----------------------------------------------------------------------
diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/fill-color-dialog.jsp
b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/fill-color-dialog.jsp
index 6e7346f..db6f66f 100644
--- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/fill-color-dialog.jsp
+++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/fill-color-dialog.jsp
@@ -17,7 +17,7 @@
 <%@ page contentType="text/html" pageEncoding="UTF-8" session="false" %>
 <div id="fill-color-dialog" class="hidden">
     <div class="dialog-content">
-        <div class="setting">
+        <div class="setting" style="margin-bottom: 0px;">
             <div class="setting-name">Color</div>
             <div class="setting-field">
                 <input type="text" id="fill-color" value="#FFFFFF"/>

http://git-wip-us.apache.org/repos/asf/nifi/blob/c4826cac/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/label-configuration.jsp
----------------------------------------------------------------------
diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/label-configuration.jsp
b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/label-configuration.jsp
index 5e05914..61725d9 100644
--- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/label-configuration.jsp
+++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/label-configuration.jsp
@@ -17,13 +17,13 @@
 <%@ page contentType="text/html" pageEncoding="UTF-8" session="false" %>
 <div id="label-configuration" class="hidden medium-dialog">
     <div id="label-configuration-contents" class="dialog-content">
-        <div class="setting" style="margin-top: 5px;">
+        <div class="setting">
             <div class="setting-name">Label Value</div>
             <div class="setting-field">
                 <textarea cols="30" rows="4" id="label-value" class="setting-input"></textarea>
             </div>
         </div>
-        <div class="setting" style="margin-top: 5px; margin-bottom: 40px;">
+        <div class="setting">
             <div class="setting-name">Font Size</div>
             <div class="setting-field">
                 <div id="label-font-size"></div>

http://git-wip-us.apache.org/repos/asf/nifi/blob/c4826cac/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/bulletin-board/nf-bulletin-board.js
----------------------------------------------------------------------
diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/bulletin-board/nf-bulletin-board.js
b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/bulletin-board/nf-bulletin-board.js
index 94fc085..58d8f79 100644
--- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/bulletin-board/nf-bulletin-board.js
+++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/bulletin-board/nf-bulletin-board.js
@@ -196,7 +196,7 @@ nf.ng.BulletinBoardCtrl = function (serviceProvider) {
      */
     var poll = function () {
         // if the page is no longer open, stop polling
-        var isOpen = $('body').is(':visible');
+        var isOpen = $('#bulletin-board').is(':visible');
         if (!isOpen) {
             bulletinBoardCtrl.polling = false;
         }

http://git-wip-us.apache.org/repos/asf/nifi/blob/c4826cac/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/nf-shell.js
----------------------------------------------------------------------
diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/nf-shell.js
b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/nf-shell.js
index 93cbfb3..b5eaeb2 100644
--- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/nf-shell.js
+++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/nf-shell.js
@@ -94,11 +94,10 @@ nf.Shell = (function () {
                     canUndock = true;
                 }
 
-                // remove the previous contents of the shell
-                shell.empty();
-
                 // register a new close handler
                 $('#shell-dialog').modal('setCloseHandler', function () {
+                    // remove the previous contents of the shell
+                    shell.empty();
                     deferred.resolve();
                 });
 


Mime
View raw message