r7313 - dumbhippo/trunk/server/src/com/dumbhippo/web/servlets



Author: marinaz
Date: 2008-02-12 13:01:11 -0600 (Tue, 12 Feb 2008)
New Revision: 7313

Modified:
   dumbhippo/trunk/server/src/com/dumbhippo/web/servlets/FacebookServlet.java
Log:
Make sure the input box width doesn't exceed a certain maximum, 
even if its contant is longer. (IE wasn't handling it corectly, 
even when the width of the form was set.)

Change the text of the button to be shorter.

Modified: dumbhippo/trunk/server/src/com/dumbhippo/web/servlets/FacebookServlet.java
===================================================================
--- dumbhippo/trunk/server/src/com/dumbhippo/web/servlets/FacebookServlet.java	2008-02-12 15:57:20 UTC (rev 7312)
+++ dumbhippo/trunk/server/src/com/dumbhippo/web/servlets/FacebookServlet.java	2008-02-12 19:01:11 UTC (rev 7313)
@@ -421,10 +421,10 @@
 				    xml.openElement("fb:editor-custom", "label", externalAccount.getSiteName());
 				    
 				    if (externalAccount.getExternalAccount() != null && externalAccount.getExternalAccount().isLovedAndEnabled()) {
-				        xml.appendEmptyNode("input", "name", "mugshot_" + externalAccount.getExternalAccountType().name(), "value", externalAccount.getExternalAccount().getAccountInfo());
+				        xml.appendEmptyNode("input", "name", "mugshot_" + externalAccount.getExternalAccountType().name(), "value", externalAccount.getExternalAccount().getAccountInfo(), "style", "max-width:270px;");
 				        hadInitialInfo = true;
 				    } else {
-				    	xml.appendEmptyNode("input", "name", "mugshot_" + externalAccount.getExternalAccountType().name());
+				    	xml.appendEmptyNode("input", "name", "mugshot_" + externalAccount.getExternalAccountType().name(), "style", "max-width:270px;");
 				    }
 				    
 				    xml.openElement("div", "style", "color:#666666;");			    
@@ -480,7 +480,7 @@
 			    	xml.closeElement();
 				    xml.append(" Following this link will log you in.");
 				    xml.openElement("form", "action", baseUrl + "/facebook-signin", "target", "_blank", "method", "GET");
-				    xml.appendEmptyNode("input", "type", "submit", "value", "Log In To My Mugshot Account", "style", buttonStyle);
+				    xml.appendEmptyNode("input", "type", "submit", "value", "Log In To Mugshot", "style", buttonStyle);
 				    xml.closeElement();		
 			    } else {
 			    	xml.openElement("span", "style", "font-weight:bold;");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]