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;
+                    }
                 }
             }
 

_______________________________________________
Esb-java-dev mailing list
[email protected]
https://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev

Reply via email to