Author: orudyy
Date: Thu May  9 15:26:48 2013
New Revision: 1480689

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

merged from trunk r1480673

Modified:
    qpid/branches/0.22/qpid/java/   (props changed)
    
qpid/branches/0.22/qpid/java/broker-plugins/management-http/src/main/java/resources/addPort.html
    
qpid/branches/0.22/qpid/java/broker-plugins/management-http/src/main/java/resources/js/qpid/management/addPort.js

Propchange: qpid/branches/0.22/qpid/java/
------------------------------------------------------------------------------
  Merged /qpid/trunk/qpid/java:r1480673

Modified: 
qpid/branches/0.22/qpid/java/broker-plugins/management-http/src/main/java/resources/addPort.html
URL: 
http://svn.apache.org/viewvc/qpid/branches/0.22/qpid/java/broker-plugins/management-http/src/main/java/resources/addPort.html?rev=1480689&r1=1480688&r2=1480689&view=diff
==============================================================================
--- 
qpid/branches/0.22/qpid/java/broker-plugins/management-http/src/main/java/resources/addPort.html
 (original)
+++ 
qpid/branches/0.22/qpid/java/broker-plugins/management-http/src/main/java/resources/addPort.html
 Thu May  9 15:26:48 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/branches/0.22/qpid/java/broker-plugins/management-http/src/main/java/resources/js/qpid/management/addPort.js
URL: 
http://svn.apache.org/viewvc/qpid/branches/0.22/qpid/java/broker-plugins/management-http/src/main/java/resources/js/qpid/management/addPort.js?rev=1480689&r1=1480688&r2=1480689&view=diff
==============================================================================
--- 
qpid/branches/0.22/qpid/java/broker-plugins/management-http/src/main/java/resources/js/qpid/management/addPort.js
 (original)
+++ 
qpid/branches/0.22/qpid/java/broker-plugins/management-http/src/main/java/resources/js/qpid/management/addPort.js
 Thu May  9 15:26:48 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to