summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Wall <kwall@apache.org>2015-03-10 22:34:02 +0000
committerKeith Wall <kwall@apache.org>2015-03-10 22:34:02 +0000
commit8ac3101249f3658bc8c13a7e5f99fc3723087fa8 (patch)
treed1a1a8b4d99e0d3725566e3ec76c27a88d2f2dd8
parent55826cdcf93afe3856313ce6197cf5ad18d5e945 (diff)
downloadqpid-python-8ac3101249f3658bc8c13a7e5f99fc3723087fa8.tar.gz
QPID-6440: [Java Broker] Web UI, correct problem that causes checkbox values to be corrupted in edit dialogues
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1665735 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--qpid/java/broker-plugins/management-http/src/main/java/resources/js/qpid/common/widgetconfigurer.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/qpid/java/broker-plugins/management-http/src/main/java/resources/js/qpid/common/widgetconfigurer.js b/qpid/java/broker-plugins/management-http/src/main/java/resources/js/qpid/common/widgetconfigurer.js
index af8f1fc2fb..baafc6f71d 100644
--- a/qpid/java/broker-plugins/management-http/src/main/java/resources/js/qpid/common/widgetconfigurer.js
+++ b/qpid/java/broker-plugins/management-http/src/main/java/resources/js/qpid/common/widgetconfigurer.js
@@ -119,12 +119,17 @@ define(["dojo/_base/xhr",
if (widget instanceof dijit.form.FilteringSelect || widget instanceof dojox.form.CheckedMultiSelect)
{
- var widgetValue = dataValue ? dataValue : defaultValue;
+ var widgetValue = dataValue == null ? defaultValue : dataValue;
if (widgetValue)
{
widget.set("value", widgetValue);
}
}
+ else if (widget instanceof dijit.form.CheckBox)
+ {
+ var widgetValue = dataValue == null ? (defaultValue == "true") : dataValue;
+ widget.set("checked", widgetValue ? true : false);
+ }
else
{
if (dataValue)