Author: macbean
Date: Mon Jul 21 13:46:18 2014
New Revision: 1612269
URL: http://svn.apache.org/r1612269
Log:
QPID-5413: [Java Broker] BDB HA VHN/VH UI text changes and improved JS
validation add permitted nodes button
Modified:
qpid/trunk/qpid/java/bdbstore/src/main/java/resources/js/qpid/management/virtualhostnode/bdb_ha/add/newgroup/add.js
qpid/trunk/qpid/java/bdbstore/src/main/java/resources/virtualhostnode/bdb_ha/add/newgroup/add.html
qpid/trunk/qpid/java/broker-plugins/management-http/src/main/java/resources/virtualhost/providedstore/add.html
qpid/trunk/qpid/java/broker-plugins/management-http/src/main/java/resources/virtualhost/sizemonitoring/add.html
Modified:
qpid/trunk/qpid/java/bdbstore/src/main/java/resources/js/qpid/management/virtualhostnode/bdb_ha/add/newgroup/add.js
URL:
http://svn.apache.org/viewvc/qpid/trunk/qpid/java/bdbstore/src/main/java/resources/js/qpid/management/virtualhostnode/bdb_ha/add/newgroup/add.js?rev=1612269&r1=1612268&r2=1612269&view=diff
==============================================================================
---
qpid/trunk/qpid/java/bdbstore/src/main/java/resources/js/qpid/management/virtualhostnode/bdb_ha/add/newgroup/add.js
(original)
+++
qpid/trunk/qpid/java/bdbstore/src/main/java/resources/js/qpid/management/virtualhostnode/bdb_ha/add/newgroup/add.js
Mon Jul 21 13:46:18 2014
@@ -43,7 +43,7 @@ define(["dojo/_base/xhr",
this.virtualHostNodeHelperAddress =
registry.byId("addVirtualHostNode.helperAddress");
// add callback
- virtualHostNodeAddress.on("change",
function(address){that._addressChanged(address,
that.virtualHostNodeHelperAddress);});
+ virtualHostNodeAddress.on("change",
function(address){that._changeAddress(address,
that.virtualHostNodeHelperAddress);});
// list objects html node and dojo object
this.addVirtualHostNodePermittedNodesList =
dom.byId("addVirtualHostNode.permittedNodesList");
@@ -52,7 +52,7 @@ define(["dojo/_base/xhr",
// permitted node text field
this.addVirtualHostNodePermittedNode =
registry.byId("addVirtualHostNode.permittedNode");
- this.addVirtualHostNodePermittedNode.on("input",
function(event){that._inputPermittedNode(event);});
+ this.addVirtualHostNodePermittedNode.on("change",
function(value){that._changePermittedNode(value);});
// add and remove buttons & click handlers
this.addVirtualHostNodePermittedNodeAddButton =
registry.byId("addVirtualHostNode.permittedNodeAdd");
@@ -93,12 +93,13 @@ define(["dojo/_base/xhr",
var hasSelection =
this.addVirtualHostNodePermittedNodesListDojo.get("value").length > 0;
this.addVirtualHostNodePermittedNodeRemoveButton.set("disabled",
!hasSelection);
},
- _inputPermittedNode: function(event)
+ _changePermittedNode: function(value)
{
- this.addVirtualHostNodePermittedNodeAddButton.set("disabled", false);
+ var fieldIsEmpty =
(this.addVirtualHostNodePermittedNode.get("value") == "");
+ this.addVirtualHostNodePermittedNodeAddButton.set("disabled",
fieldIsEmpty);
return true;
},
- _addressChanged: function(address, virtualHostNodeHelperAddress)
+ _changeAddress: function(address, virtualHostNodeHelperAddress)
{
virtualHostNodeHelperAddress.set("value", address);
},
Modified:
qpid/trunk/qpid/java/bdbstore/src/main/java/resources/virtualhostnode/bdb_ha/add/newgroup/add.html
URL:
http://svn.apache.org/viewvc/qpid/trunk/qpid/java/bdbstore/src/main/java/resources/virtualhostnode/bdb_ha/add/newgroup/add.html?rev=1612269&r1=1612268&r2=1612269&view=diff
==============================================================================
---
qpid/trunk/qpid/java/bdbstore/src/main/java/resources/virtualhostnode/bdb_ha/add/newgroup/add.html
(original)
+++
qpid/trunk/qpid/java/bdbstore/src/main/java/resources/virtualhostnode/bdb_ha/add/newgroup/add.html
Mon Jul 21 13:46:18 2014
@@ -101,6 +101,7 @@
name: 'permittedNode',
placeHolder: 'host:port',
title: 'Enter address',
+ intermediateChanges: true,
pattern:
'([0-9a-zA-Z.-_]|::)+:[0-9]{1,5}'" />
</div>
<div class="formBoxButtons">
Modified:
qpid/trunk/qpid/java/broker-plugins/management-http/src/main/java/resources/virtualhost/providedstore/add.html
URL:
http://svn.apache.org/viewvc/qpid/trunk/qpid/java/broker-plugins/management-http/src/main/java/resources/virtualhost/providedstore/add.html?rev=1612269&r1=1612268&r2=1612269&view=diff
==============================================================================
---
qpid/trunk/qpid/java/broker-plugins/management-http/src/main/java/resources/virtualhost/providedstore/add.html
(original)
+++
qpid/trunk/qpid/java/broker-plugins/management-http/src/main/java/resources/virtualhost/providedstore/add.html
Mon Jul 21 13:46:18 2014
@@ -25,6 +25,7 @@
data-dojo-type="dijit/form/NumberTextBox"
data-dojo-props="
name: 'storeOverfullSize',
+ placeHolder: 'size in bytes',
required: false,
title: 'Enter ceiling (in bytes) at which store
will begin to throttle sessions producing messages',
constraints:{min:0,places:0}" />
@@ -37,6 +38,7 @@
data-dojo-type="dijit/form/NumberTextBox"
data-dojo-props="
name: 'storeUnderfullSize',
+ placeHolder: 'size in bytes',
required: false,
title: 'Enter floor (in bytes) at which store
will cease to throttle sessions producing messages',
constraints:{min:0,places:0}" />
Modified:
qpid/trunk/qpid/java/broker-plugins/management-http/src/main/java/resources/virtualhost/sizemonitoring/add.html
URL:
http://svn.apache.org/viewvc/qpid/trunk/qpid/java/broker-plugins/management-http/src/main/java/resources/virtualhost/sizemonitoring/add.html?rev=1612269&r1=1612268&r2=1612269&view=diff
==============================================================================
---
qpid/trunk/qpid/java/broker-plugins/management-http/src/main/java/resources/virtualhost/sizemonitoring/add.html
(original)
+++
qpid/trunk/qpid/java/broker-plugins/management-http/src/main/java/resources/virtualhost/sizemonitoring/add.html
Mon Jul 21 13:46:18 2014
@@ -38,6 +38,7 @@
data-dojo-type="dijit/form/NumberTextBox"
data-dojo-props="
name: 'storeOverfullSize',
+ placeHolder: 'size in bytes',
required: false,
title: 'Enter ceiling (in bytes) at which store
will begin to throttle sessions producing messages',
constraints:{min:0,places:0}" />
@@ -50,6 +51,7 @@
data-dojo-type="dijit/form/NumberTextBox"
data-dojo-props="
name: 'storeUnderfullSize',
+ placeHolder: 'size in bytes',
required: false,
title: 'Enter floor (in bytes) at which store
will cease to throttle sessions producing messages',
constraints:{min:0,places:0}" />
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]