Author: jonathan
Date: Thu Aug  7 17:11:04 2008
New Revision: 20563
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=20563

Log:
MASHUP-1001: Widening error dialog a bit.

Modified:
   branches/mashup/java/1.5/java/modules/www/js/services.js

Modified: branches/mashup/java/1.5/java/modules/www/js/services.js
URL: 
http://wso2.org/svn/browse/wso2/branches/mashup/java/1.5/java/modules/www/js/services.js?rev=20563&r1=20562&r2=20563&view=diff
==============================================================================
--- branches/mashup/java/1.5/java/modules/www/js/services.js    (original)
+++ branches/mashup/java/1.5/java/modules/www/js/services.js    Thu Aug  7 
17:11:04 2008
@@ -684,7 +684,7 @@
 
     var error = this.req.error;
     if (!error) {
-        WSO2.MashupUtils.dialog("An error occured", "Console has received an 
error. Please refer to system admin for more details.<br/><div 
style='text-align:right;'><input type='button' value='Close' 
onclick='WSO2.MashupUtils.dialog.close();'/></div>", 200, 50, null);
+        WSO2.MashupUtils.dialog("An error occured", "Console has received an 
error. Please refer to system admin for more details.<br/><div 
style='text-align:right;'><input type='button' value='Close' 
onclick='WSO2.MashupUtils.dialog.close();'/></div>", 400, 50, null);
     } else if (error.reason.indexOf("Access Denied. Please login first") > -1) 
{
         var rememberMe = BrowserUtility.Cookie("rememberMe");
         var dialogText;
@@ -699,10 +699,10 @@
         //wso2.mashup.handleLogout();
     } else if (typeof (error.detail.indexOf) != "undefined" &&
                error.detail.indexOf("NS_ERROR_NOT_AVAILABLE") > -1) {
-        WSO2.MashupUtils.dialog("An error occured", "Your session has 
expired.<br/><div style='text-align:right;'><input type='button' value='Close' 
onclick='WSO2.MashupUtils.dialog.close();'/></div>", 200, 50, null);
+        WSO2.MashupUtils.dialog("An error occured", "Your session has 
expired.<br/><div style='text-align:right;'><input type='button' value='Close' 
onclick='WSO2.MashupUtils.dialog.close();'/></div>", 400, 50, null);
         //Envoking force logout
         //wso2.mashup.handleLogout();
     } else {
-        WSO2.MashupUtils.dialog("An error occured", error.reason + "<br/><div 
style='text-align:right;'><input type='button' value='Close' 
onclick='WSO2.MashupUtils.dialog.close();'/></div>", 200, 50, null);
+        WSO2.MashupUtils.dialog("An error occured", error.reason + "<br/><div 
style='text-align:right;'><input type='button' value='Close' 
onclick='WSO2.MashupUtils.dialog.close();'/></div>", 400, 50, null);
     }
 };

_______________________________________________
Mashup-dev mailing list
[email protected]
http://mailman.wso2.org/cgi-bin/mailman/listinfo/mashup-dev

Reply via email to