You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by or...@apache.org on 2015/01/30 17:49:52 UTC

svn commit: r1656054 - /qpid/trunk/qpid/java/broker-plugins/management-http/src/main/java/resources/js/qpid/common/ResourceWidget.js

Author: orudyy
Date: Fri Jan 30 16:49:52 2015
New Revision: 1656054

URL: http://svn.apache.org/r1656054
Log:
QPID-6346: Fix setting of required flag on ResourceWidget

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

Modified: qpid/trunk/qpid/java/broker-plugins/management-http/src/main/java/resources/js/qpid/common/ResourceWidget.js
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/broker-plugins/management-http/src/main/java/resources/js/qpid/common/ResourceWidget.js?rev=1656054&r1=1656053&r2=1656054&view=diff
==============================================================================
--- qpid/trunk/qpid/java/broker-plugins/management-http/src/main/java/resources/js/qpid/common/ResourceWidget.js (original)
+++ qpid/trunk/qpid/java/broker-plugins/management-http/src/main/java/resources/js/qpid/common/ResourceWidget.js Fri Jan 30 16:49:52 2015
@@ -93,6 +93,7 @@ function (declare, array, lang, util, _W
            {
                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, _W
             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";



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