[esb-java-dev] svn commit r32054 - branches/esb/java/2.0.1/carbon-components/mediators/xquery/org.wso2.carbon.mediator.xquery.ui/src/main/resources/web/xquery-mediator/js

supun at wso2.com supun at wso2.com
Thu Mar 12 22:28:09 PDT 2009


Author: supun
Date: Thu Mar 12 22:28:08 2009
New Revision: 32054
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=32054

Log:
Fixing issue CARBON 3079

Modified:
   branches/esb/java/2.0.1/carbon-components/mediators/xquery/org.wso2.carbon.mediator.xquery.ui/src/main/resources/web/xquery-mediator/js/mediator-util.js

Modified: branches/esb/java/2.0.1/carbon-components/mediators/xquery/org.wso2.carbon.mediator.xquery.ui/src/main/resources/web/xquery-mediator/js/mediator-util.js
URL: http://wso2.org/svn/browse/wso2/branches/esb/java/2.0.1/carbon-components/mediators/xquery/org.wso2.carbon.mediator.xquery.ui/src/main/resources/web/xquery-mediator/js/mediator-util.js?rev=32054&r1=32053&r2=32054&view=diff
==============================================================================
--- branches/esb/java/2.0.1/carbon-components/mediators/xquery/org.wso2.carbon.mediator.xquery.ui/src/main/resources/web/xquery-mediator/js/mediator-util.js	(original)
+++ branches/esb/java/2.0.1/carbon-components/mediators/xquery/org.wso2.carbon.mediator.xquery.ui/src/main/resources/web/xquery-mediator/js/mediator-util.js	Thu Mar 12 22:28:08 2009
@@ -84,11 +84,14 @@
                     return false;
                 }
             }
-            var uri = document.getElementById("variableValue" + k);
-            if (uri != null && uri != undefined) {
-                if (uri.value == "") {
-                    CARBON.showWarningDialog(valueemptymsg)
-                    return false;
+            var type = document.getElementById("variableTypeSelection" + k);
+            if (type.value == "literal") {
+                var uri = document.getElementById("variableValue" + k);
+                if (uri != null && uri != undefined) {
+                    if (uri.value == "") {
+                        CARBON.showWarningDialog(valueemptymsg)
+                        return false;
+                    }
                 }
             }
 



More information about the Esb-java-dev mailing list