r7314 - in dumbhippo/trunk/server/src/com/dumbhippo: persistence web/servlets



Author: marinaz
Date: 2008-02-12 13:36:39 -0600 (Tue, 12 Feb 2008)
New Revision: 7314

Modified:
   dumbhippo/trunk/server/src/com/dumbhippo/persistence/ExternalAccountType.java
   dumbhippo/trunk/server/src/com/dumbhippo/web/servlets/FacebookServlet.java
Log:
More width-wrangling in IE.

Make it more clear what information we want for the Blog external account. 

Modified: dumbhippo/trunk/server/src/com/dumbhippo/persistence/ExternalAccountType.java
===================================================================
--- dumbhippo/trunk/server/src/com/dumbhippo/persistence/ExternalAccountType.java	2008-02-12 19:01:11 UTC (rev 7313)
+++ dumbhippo/trunk/server/src/com/dumbhippo/persistence/ExternalAccountType.java	2008-02-12 19:36:39 UTC (rev 7314)
@@ -444,6 +444,11 @@
 		}
 		
 		@Override
+	    public String getSiteUserInfoType() {
+	    	return "URL";
+	    }
+		
+		@Override
 		public String getIconName() {
 		    return "blog_icon.png";	
 		}

Modified: dumbhippo/trunk/server/src/com/dumbhippo/web/servlets/FacebookServlet.java
===================================================================
--- dumbhippo/trunk/server/src/com/dumbhippo/web/servlets/FacebookServlet.java	2008-02-12 19:01:11 UTC (rev 7313)
+++ dumbhippo/trunk/server/src/com/dumbhippo/web/servlets/FacebookServlet.java	2008-02-12 19:36:39 UTC (rev 7314)
@@ -415,24 +415,36 @@
 			    	if (currentCategory == null || !currentCategory.equals(externalAccount.getExternalAccountType().getCategory())) {
 					    currentCategory = externalAccount.getExternalAccountType().getCategory();
 			    		xml.openElement("fb:editor-custom");
-					    xml.appendTextNode("h3", currentCategory.getCategoryName(), "style", categoryNameLeftMargin);		    	
+					    xml.appendTextNode("h3", currentCategory.getCategoryName(), "style", categoryNameLeftMargin + "width:275px;");		    	
 					    xml.closeElement();
 			    	}
 				    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(), "style", "max-width:270px;");
+				        xml.appendEmptyNode("input", "name", "mugshot_" + externalAccount.getExternalAccountType().name(), "value", externalAccount.getExternalAccount().getAccountInfo(), "style", "width:275px;");
 				        hadInitialInfo = true;
 				    } else {
-				    	xml.appendEmptyNode("input", "name", "mugshot_" + externalAccount.getExternalAccountType().name(), "style", "max-width:270px;");
+				    	xml.appendEmptyNode("input", "name", "mugshot_" + externalAccount.getExternalAccountType().name(), "style", "style", "width:275px;");
 				    }
 				    
-				    xml.openElement("div", "style", "color:#666666;");			    
+				    xml.openElement("div", "style", "color:#666666;width:275px;");			    
 				    if (externalAccount.isInfoTypeProvidedBySite()) {
 				        xml.append("Enter your ");
-				        xml.appendTextNode("a", externalAccount.getSiteName(), 
-				        		           "href", externalAccount.getExternalAccountType().getSiteLink(), 
-				        		           "target", "_blank");
+				        if (externalAccount.getExternalAccountType() == ExternalAccountType.BLOG) {
+				        	xml.append(" blog (e.g. ");
+				            xml.appendTextNode("a", "LiveJournal", 
+		        	  	               "href", "http://livejournal.com";, 
+		        		               "target", "_blank");
+				            xml.append(", ");
+				            xml.appendTextNode("a", "Blogger", 
+		        	  	               "href", "http://blogger.com";, 
+		        		               "target", "_blank");
+				            xml.append(", personal blog)");
+				        } else { 	
+				            xml.appendTextNode("a", externalAccount.getSiteName(), 
+				        	  	               "href", externalAccount.getExternalAccountType().getSiteLink(), 
+				        		               "target", "_blank");
+				        }    
 				        xml.append(" " + externalAccount.getSiteUserInfoType());
 					    if (externalAccount.getExternalAccountType().getHelpUrl().trim().length() > 0) {
 					    	xml.append(" (");



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