[Carbon-commits] [Carbon] svn commit r114513 - trunk/carbon/components/dbconsole/org.wso2.carbon.dbconsole.ui/src/main/resources/web/dbconsole

prabatha at wso2.com prabatha at wso2.com
Thu Oct 20 01:39:32 EDT 2011


Author: prabatha
Date: Wed Oct 19 22:39:31 2011
New Revision: 114513
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=114513

Log:
cleaning up error message handling in dbconsole

Modified:
   trunk/carbon/components/dbconsole/org.wso2.carbon.dbconsole.ui/src/main/resources/web/dbconsole/login.jsp

Modified: trunk/carbon/components/dbconsole/org.wso2.carbon.dbconsole.ui/src/main/resources/web/dbconsole/login.jsp
URL: http://wso2.org/svn/browse/wso2/trunk/carbon/components/dbconsole/org.wso2.carbon.dbconsole.ui/src/main/resources/web/dbconsole/login.jsp?rev=114513&r1=114512&r2=114513&view=diff
==============================================================================
--- trunk/carbon/components/dbconsole/org.wso2.carbon.dbconsole.ui/src/main/resources/web/dbconsole/login.jsp	(original)
+++ trunk/carbon/components/dbconsole/org.wso2.carbon.dbconsole.ui/src/main/resources/web/dbconsole/login.jsp	Wed Oct 19 22:39:31 2011
@@ -35,7 +35,7 @@
         var password = document.getElementById("password").value;
         var flag = document.getElementById('flag').value;
         if (flag == '') {
-            if (url != 'null' || driver != 'null' || user != 'null') {
+            if ((url != null && url != '') && (driver != null && driver != '') && (user != null && user != '')) {
                 var doc = getDocFromIFrame();
                 doc.forms['login'].url.value = url;
                 doc.forms['login'].user.value = user;


More information about the Carbon-commits mailing list