qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From oru...@apache.org
Subject svn commit: r1480673 - in /qpid/trunk/qpid/java/broker-plugins/management-http/src/main/java/resources: addPort.html js/qpid/management/addPort.js
Date Thu, 09 May 2013 15:06:04 GMT
Author: orudyy
Date: Thu May  9 15:06:04 2013
New Revision: 1480673

URL: http://svn.apache.org/r1480673
Log:
QPID-4657: Add note into Port editing UI that changes take have after Broker restart

Modified:
    qpid/trunk/qpid/java/broker-plugins/management-http/src/main/java/resources/addPort.html
    qpid/trunk/qpid/java/broker-plugins/management-http/src/main/java/resources/js/qpid/management/addPort.js

Modified: qpid/trunk/qpid/java/broker-plugins/management-http/src/main/java/resources/addPort.html
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/broker-plugins/management-http/src/main/java/resources/addPort.html?rev=1480673&r1=1480672&r2=1480673&view=diff
==============================================================================
--- qpid/trunk/qpid/java/broker-plugins/management-http/src/main/java/resources/addPort.html
(original)
+++ qpid/trunk/qpid/java/broker-plugins/management-http/src/main/java/resources/addPort.html
Thu May  9 15:06:04 2013
@@ -22,6 +22,7 @@
     <div data-dojo-type="dijit.Dialog" data-dojo-props="title:'Port'" id="addPort">
         <form id="formAddPort" method="post" dojoType="dijit.form.Form">
             <div style="height:320px; width:420px; overflow: auto">
+            <div style="display:none;" id="portEditWarning">NOTE: changes will only
take effect after Broker restart.</div>
             <div id="formAddPort:fields">
                 <input type="text" required="true" name="name" id="formAddPort.name" placeholder="Name"
                     data-dojo-props="label: 'Name*:'" dojoType="dijit.form.ValidationTextBox"

Modified: qpid/trunk/qpid/java/broker-plugins/management-http/src/main/java/resources/js/qpid/management/addPort.js
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/broker-plugins/management-http/src/main/java/resources/js/qpid/management/addPort.js?rev=1480673&r1=1480672&r2=1480673&view=diff
==============================================================================
--- qpid/trunk/qpid/java/broker-plugins/management-http/src/main/java/resources/js/qpid/management/addPort.js
(original)
+++ qpid/trunk/qpid/java/broker-plugins/management-http/src/main/java/resources/js/qpid/management/addPort.js
Thu May  9 15:06:04 2013
@@ -342,7 +342,7 @@ define(["dojo/_base/xhr",
 
             registry.byId("formAddPort").reset();
             dojo.byId("formAddPort.id").value = "";
-
+            var editWarning = dojo.byId("portEditWarning");
             var providerWidget = registry.byId("formAddPort.authenticationProvider");
             if (providers)
             {
@@ -388,6 +388,8 @@ define(["dojo/_base/xhr",
 
             if (portName)
             {
+                editWarning.style.display = "block";
+
                 xhr.get({
                     url: "rest/port/" + encodeURIComponent(portName),
                     handleAs: "json"
@@ -490,6 +492,7 @@ define(["dojo/_base/xhr",
                 typeWidget.set("value", "AMQP");
                 var name = registry.byId("formAddPort.name");
                 name.set("disabled", false);
+                editWarning.style.display = "none";
                 registry.byId("addPort").show();
             }
         };



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


Mime
View raw message