Author: jonathan Date: Thu Aug 7 17:10:24 2008 New Revision: 20562 URL: http://wso2.org/svn/browse/wso2?view=rev&revision=20562
Log: MASHUP-1001: Widening error dialog a bit. Modified: trunk/mashup/java/modules/www/js/services.js Modified: trunk/mashup/java/modules/www/js/services.js URL: http://wso2.org/svn/browse/wso2/trunk/mashup/java/modules/www/js/services.js?rev=20562&r1=20561&r2=20562&view=diff ============================================================================== --- trunk/mashup/java/modules/www/js/services.js (original) +++ trunk/mashup/java/modules/www/js/services.js Thu Aug 7 17:10:24 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
