qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From oru...@apache.org
Subject qpid-broker-j git commit: QPID-8014:[Broker-J][WMC] Make sure that port UI template is parsed
Date Mon, 19 Mar 2018 11:08:35 GMT
Repository: qpid-broker-j
Updated Branches:
  refs/heads/master ee3bfae23 -> 3f0f55875


QPID-8014:[Broker-J][WMC] Make sure that port UI template is parsed


Project: http://git-wip-us.apache.org/repos/asf/qpid-broker-j/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-broker-j/commit/3f0f5587
Tree: http://git-wip-us.apache.org/repos/asf/qpid-broker-j/tree/3f0f5587
Diff: http://git-wip-us.apache.org/repos/asf/qpid-broker-j/diff/3f0f5587

Branch: refs/heads/master
Commit: 3f0f558759b283592f50e744ca48e25a9a5932dd
Parents: ee3bfae
Author: Alex Rudyy <orudyy@apache.org>
Authored: Mon Mar 19 11:08:10 2018 +0000
Committer: Alex Rudyy <orudyy@apache.org>
Committed: Mon Mar 19 11:08:10 2018 +0000

----------------------------------------------------------------------
 .../resources/js/qpid/management/addPort.js     | 26 ++++++++++++++++----
 1 file changed, 21 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-broker-j/blob/3f0f5587/broker-plugins/management-http/src/main/java/resources/js/qpid/management/addPort.js
----------------------------------------------------------------------
diff --git a/broker-plugins/management-http/src/main/java/resources/js/qpid/management/addPort.js
b/broker-plugins/management-http/src/main/java/resources/js/qpid/management/addPort.js
index 3d194fa..1dcbb2f 100644
--- a/broker-plugins/management-http/src/main/java/resources/js/qpid/management/addPort.js
+++ b/broker-plugins/management-http/src/main/java/resources/js/qpid/management/addPort.js
@@ -20,6 +20,7 @@
  */
 define(["dojo/dom",
         "dojo/dom-construct",
+        "dojo/parser",
         "dojo/_base/window",
         "dijit/registry",
         "dojo/_base/array",
@@ -57,6 +58,7 @@ define(["dojo/dom",
         "dojo/domReady!"],
     function (dom,
               construct,
+              parser,
               win,
               registry,
               array,
@@ -73,10 +75,22 @@ define(["dojo/dom",
 
         var addPort = {};
 
-        var node = construct.create("div", null, win.body(), "last");
+        addPort.init = function ()
+        {
+            var node = construct.create("div", null, win.body(), "last");
+            node.innerHTML = template;
 
-        node.innerHTML = template;
-        addPort.dialogNode = dom.byId("addPort")
+            parser.parse(node)
+                .then(lang.hitch(this, function (instances)
+                {
+                    this._postParse();
+                }));
+        };
+
+        addPort._postParse = function()
+        {
+            this.dialogNode = dom.byId("addPort");
+        };
 
         addPort._typeChanged = function (newValue)
         {
@@ -139,7 +153,7 @@ define(["dojo/dom",
                     "SSL") >= 0) || currentTransport == "WSS" || (lang.isArray(currentTransport)
&& array.indexOf(
                     currentTransport,
                     "WSS") >= 0);
-        }
+        };
 
         addPort._convertToPort = function (formValues)
         {
@@ -359,7 +373,7 @@ define(["dojo/dom",
                 }
 
             });
-        }
+        };
 
         addPort.show = function (management, modelObj, portType, providers, keystores, truststores)
         {
@@ -653,5 +667,7 @@ define(["dojo/dom",
             managedCertificateStoresWidget.startup();
         };
 
+        addPort.init();
+
         return addPort;
     });


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message