diff options
author | Alex Rudyy <orudyy@apache.org> | 2015-01-30 16:49:52 +0000 |
---|---|---|
committer | Alex Rudyy <orudyy@apache.org> | 2015-01-30 16:49:52 +0000 |
commit | 2e61366ced5d8126426c14ff08c7c7b38cca659b (patch) | |
tree | ce857c35e4e0c4a18ab559a04f28d2ca7844544b /qpid/java/broker-plugins | |
parent | 0c774a3384905c988cdf3ef09214ff53f5865995 (diff) | |
download | qpid-python-2e61366ced5d8126426c14ff08c7c7b38cca659b.tar.gz |
QPID-6346: Fix setting of required flag on ResourceWidget
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1656054 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/broker-plugins')
-rw-r--r-- | qpid/java/broker-plugins/management-http/src/main/java/resources/js/qpid/common/ResourceWidget.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qpid/java/broker-plugins/management-http/src/main/java/resources/js/qpid/common/ResourceWidget.js b/qpid/java/broker-plugins/management-http/src/main/java/resources/js/qpid/common/ResourceWidget.js index 0082c7524f..7b1663ac5d 100644 --- a/qpid/java/broker-plugins/management-http/src/main/java/resources/js/qpid/common/ResourceWidget.js +++ b/qpid/java/broker-plugins/management-http/src/main/java/resources/js/qpid/common/ResourceWidget.js @@ -93,6 +93,7 @@ function (declare, array, lang, util, _WidgetBase, _TemplatedMixin, _WidgetsInTe { this.resourceLocation.set("title", this.title); } + this.resourceLocation.set("required", this.required ? true : false); this.uploadData.style.display = "none"; }, startup: function() @@ -154,7 +155,7 @@ function (declare, array, lang, util, _WidgetBase, _TemplatedMixin, _WidgetsInTe this.selectedFileName = null; this.selectedFileStatus.className = ""; this.selectedFile.innerHTML = ""; - this.resourceLocation.set("required", true); + this.resourceLocation.set("required", this.required ? true : false); this.resourceLocation.setDisabled(false); this.clearButton.setDisabled(true); this.uploadData.style.display = "none"; |