rave-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ja...@apache.org
Subject svn commit: r1174632 - in /incubator/rave/trunk: rave-components/rave-core/src/main/java/org/apache/rave/portal/model/ rave-components/rave-web/src/main/java/org/apache/rave/portal/web/validator/ rave-components/rave-web/src/test/java/org/apache/rave/p...
Date Fri, 23 Sep 2011 10:21:17 GMT
Author: jasha
Date: Fri Sep 23 10:21:16 2011
New Revision: 1174632

URL: http://svn.apache.org/viewvc?rev=1174632&view=rev
Log:
RAVE-272 add support for title_url and author_email
Fix error message for thumbnailUrl in add widget form

Modified:
    incubator/rave/trunk/rave-components/rave-core/src/main/java/org/apache/rave/portal/model/Widget.java
    incubator/rave/trunk/rave-components/rave-web/src/main/java/org/apache/rave/portal/web/validator/NewWidgetValidator.java
    incubator/rave/trunk/rave-components/rave-web/src/test/java/org/apache/rave/portal/web/validator/NewWidgetValidatorTest.java
    incubator/rave/trunk/rave-portal-resources/src/main/resources/messages.properties
    incubator/rave/trunk/rave-portal-resources/src/main/webapp/WEB-INF/db/initial_data.sql
    incubator/rave/trunk/rave-portal-resources/src/main/webapp/WEB-INF/views/addwidget.jsp
    incubator/rave/trunk/rave-portal-resources/src/main/webapp/WEB-INF/views/home.jsp
    incubator/rave/trunk/rave-portal-resources/src/main/webapp/WEB-INF/views/widget.jsp
    incubator/rave/trunk/rave-portal-resources/src/main/webapp/css/default.css

Modified: incubator/rave/trunk/rave-components/rave-core/src/main/java/org/apache/rave/portal/model/Widget.java
URL: http://svn.apache.org/viewvc/incubator/rave/trunk/rave-components/rave-core/src/main/java/org/apache/rave/portal/model/Widget.java?rev=1174632&r1=1174631&r2=1174632&view=diff
==============================================================================
--- incubator/rave/trunk/rave-components/rave-core/src/main/java/org/apache/rave/portal/model/Widget.java
(original)
+++ incubator/rave/trunk/rave-components/rave-core/src/main/java/org/apache/rave/portal/model/Widget.java
Fri Sep 23 10:21:16 2011
@@ -36,7 +36,6 @@ import javax.persistence.TableGenerator;
 import javax.xml.bind.annotation.XmlAccessType;
 import javax.xml.bind.annotation.XmlAccessorType;
 import javax.xml.bind.annotation.XmlElement;
-
 import java.io.Serializable;
 
 /**
@@ -98,6 +97,10 @@ public class Widget implements BasicEnti
     //private InternationalString title;
 
     @XmlElement
+    @Basic @Column(name="title_url")
+    private String titleUrl;
+
+    @XmlElement
     @Basic @Column(name="url", unique = true)
     private String url;
 
@@ -116,6 +119,10 @@ public class Widget implements BasicEnti
     private String author;
 
     @XmlElement
+    @Basic @Column(name="author_email")
+    private String authorEmail;
+
+    @XmlElement
     @Basic @Column(name = "description") @Lob
     private String description;
 
@@ -174,6 +181,14 @@ public class Widget implements BasicEnti
         this.author = author;
     }
 
+    public String getAuthorEmail() {
+        return authorEmail;
+    }
+
+    public void setAuthorEmail(String authorEmail) {
+        this.authorEmail = authorEmail;
+    }
+
     public String getDescription() {
         return description;
     }
@@ -206,6 +221,14 @@ public class Widget implements BasicEnti
         this.title = title;
     }
 
+    public String getTitleUrl() {
+        return titleUrl;
+    }
+
+    public void setTitleUrl(String titleUrl) {
+        this.titleUrl = titleUrl;
+    }
+
     public String getUrl() {
         return url;
     }

Modified: incubator/rave/trunk/rave-components/rave-web/src/main/java/org/apache/rave/portal/web/validator/NewWidgetValidator.java
URL: http://svn.apache.org/viewvc/incubator/rave/trunk/rave-components/rave-web/src/main/java/org/apache/rave/portal/web/validator/NewWidgetValidator.java?rev=1174632&r1=1174631&r2=1174632&view=diff
==============================================================================
--- incubator/rave/trunk/rave-components/rave-web/src/main/java/org/apache/rave/portal/web/validator/NewWidgetValidator.java
(original)
+++ incubator/rave/trunk/rave-components/rave-web/src/main/java/org/apache/rave/portal/web/validator/NewWidgetValidator.java
Fri Sep 23 10:21:16 2011
@@ -91,7 +91,12 @@ public class NewWidgetValidator implemen
 
         String thumbnailUrl = widget.getThumbnailUrl();
         if (StringUtils.isNotBlank(thumbnailUrl) && !validator.isValid(thumbnailUrl))
{
-            errors.rejectValue("thumbnailUrl", "widget.screenshotUrl.malformed");
+            errors.rejectValue("thumbnailUrl", "widget.thumbnailUrl.malformed");
+        }
+
+        String titleUrl = widget.getTitleUrl();
+        if (StringUtils.isNotBlank(titleUrl) && !validator.isValid(titleUrl)) {
+            errors.rejectValue("titleUrl", "widget.titleUrl.malformed");
         }
     }
 }

Modified: incubator/rave/trunk/rave-components/rave-web/src/test/java/org/apache/rave/portal/web/validator/NewWidgetValidatorTest.java
URL: http://svn.apache.org/viewvc/incubator/rave/trunk/rave-components/rave-web/src/test/java/org/apache/rave/portal/web/validator/NewWidgetValidatorTest.java?rev=1174632&r1=1174631&r2=1174632&view=diff
==============================================================================
--- incubator/rave/trunk/rave-components/rave-web/src/test/java/org/apache/rave/portal/web/validator/NewWidgetValidatorTest.java
(original)
+++ incubator/rave/trunk/rave-components/rave-web/src/test/java/org/apache/rave/portal/web/validator/NewWidgetValidatorTest.java
Fri Sep 23 10:21:16 2011
@@ -77,13 +77,15 @@ public class NewWidgetValidatorTest {
         widget.setUrl("http:/this.is/invalid?url=true&reject=true");
         widget.setScreenshotUrl("https://///invalid/screenshot");
         widget.setThumbnailUrl("thumbnail");
+        widget.setTitleUrl("titleUrl");
         Errors errors = new BindException(widget, WIDGET);
 
         newWidgetValidator.validate(widget, errors);
-        assertEquals(3, errors.getErrorCount());
+        assertEquals(4, errors.getErrorCount());
         assertNotNull("Field error on url", errors.getFieldError("url"));
         assertNotNull("Field error on screenshot url", errors.getFieldError("screenshotUrl"));
         assertNotNull("Field error on thumbnail url", errors.getFieldError("thumbnailUrl"));
+        assertNotNull("Field error on title url", errors.getFieldError("titleUrl"));
     }
 
     @Before

Modified: incubator/rave/trunk/rave-portal-resources/src/main/resources/messages.properties
URL: http://svn.apache.org/viewvc/incubator/rave/trunk/rave-portal-resources/src/main/resources/messages.properties?rev=1174632&r1=1174631&r2=1174632&view=diff
==============================================================================
--- incubator/rave/trunk/rave-portal-resources/src/main/resources/messages.properties (original)
+++ incubator/rave/trunk/rave-portal-resources/src/main/resources/messages.properties Fri
Sep 23 10:21:16 2011
@@ -104,6 +104,7 @@ page.addwidget.result.exists=The widget 
 page.addwidget.result.success=The widget was successfully added.
 
 widget.author=Author
+widget.authorEmail=Author's email address
 widget.description=Description
 widget.screenshotUrl=Screenshot
 widget.screenshotUrl.malformed=URL is malformed
@@ -111,6 +112,8 @@ widget.thumbnailUrl=Thumbnail
 widget.thumbnailUrl.malformed=URL is malformed
 widget.title=Title
 widget.title.required=Title is required
+widget.titleUrl=URL the gadget title links to
+widget.titleUrl.malformed=URL is malformed
 widget.type=Type
 widget.type.OpenSocial=OpenSocial
 widget.type.W3C=W3C Widget

Modified: incubator/rave/trunk/rave-portal-resources/src/main/webapp/WEB-INF/db/initial_data.sql
URL: http://svn.apache.org/viewvc/incubator/rave/trunk/rave-portal-resources/src/main/webapp/WEB-INF/db/initial_data.sql?rev=1174632&r1=1174631&r2=1174632&view=diff
==============================================================================
--- incubator/rave/trunk/rave-portal-resources/src/main/webapp/WEB-INF/db/initial_data.sql
(original)
+++ incubator/rave/trunk/rave-portal-resources/src/main/webapp/WEB-INF/db/initial_data.sql
Fri Sep 23 10:21:16 2011
@@ -151,14 +151,14 @@ UPDATE RAVE_PORTAL_SEQUENCES SET seq_cou
 --- gadget data ---
 -- wikipedia widget
 set @wikipedia_widget_id = (SELECT seq_count FROM RAVE_PORTAL_SEQUENCES WHERE seq_name =
@widget_seq);
-insert into widget (entity_id, title, url, type, description, author, widget_status)
-values(@wikipedia_widget_id, 'Wikipedia','http://www.widget-dico.com/wikipedia/google/wikipedia.xml',
'OpenSocial', 'A Wikipedia Search and Go widget. Language choice.', 'WidgetMe', 'PUBLISHED');
+insert into widget (entity_id, title, url, type, description, author, widget_status, title_url,
author_email)
+values(@wikipedia_widget_id, 'Wikipedia','http://www.widget-dico.com/wikipedia/google/wikipedia.xml',
'OpenSocial', 'A Wikipedia Search and Go widget. Language choice.', 'WidgetMe', 'PUBLISHED',
'http://en.wikipedia.org/wiki/Main_Page', 'google@widgetme.com');
 UPDATE RAVE_PORTAL_SEQUENCES SET seq_count = (seq_count + 1) WHERE seq_name = @widget_seq;
 
 -- translate widget
 set @translate_widget_id = (SELECT seq_count FROM RAVE_PORTAL_SEQUENCES WHERE seq_name =
@widget_seq);
-insert into widget (entity_id, title, url, type, description, author, widget_status)
-values(@translate_widget_id, 'Translate Gadget', 'http://www.gstatic.com/ig/modules/dictionary/dictionary.xml','OpenSocial'
, 'Google Translation gadget.', 'Google Taiwan', 'PUBLISHED');
+insert into widget (entity_id, title, url, type, description, author, widget_status, title_url,
author_email)
+values(@translate_widget_id, 'Translate Gadget', 'http://www.gstatic.com/ig/modules/dictionary/dictionary.xml','OpenSocial'
, 'Google Translation gadget.', 'Google Taiwan', 'PUBLISHED', 'http://translate.google.com/',
'googlemodules+dictionary+201109071@google.com');
 UPDATE RAVE_PORTAL_SEQUENCES SET seq_count = (seq_count + 1) WHERE seq_name = @widget_seq;
 
 -- nytimes widget

Modified: incubator/rave/trunk/rave-portal-resources/src/main/webapp/WEB-INF/views/addwidget.jsp
URL: http://svn.apache.org/viewvc/incubator/rave/trunk/rave-portal-resources/src/main/webapp/WEB-INF/views/addwidget.jsp?rev=1174632&r1=1174631&r2=1174632&view=diff
==============================================================================
--- incubator/rave/trunk/rave-portal-resources/src/main/webapp/WEB-INF/views/addwidget.jsp
(original)
+++ incubator/rave/trunk/rave-portal-resources/src/main/webapp/WEB-INF/views/addwidget.jsp
Fri Sep 23 10:21:16 2011
@@ -39,12 +39,12 @@
         <h2><fmt:message key="page.addwidget.form.header"/></h2>
         <form:errors path="widget" cssClass="error" element="p"/>
         <form:form id="newWidgetForm" action="add" commandName="widget" method="POST">
-          <fieldset>
+            <fieldset>
                 <p><fmt:message key="form.some.fields.required"/></p>
 
                 <p>
                     <form:label path="title"><fmt:message key="widget.title"/>
*</form:label>
-                    <form:input path="title" cssClass="long" required="required" autofocus="autofocus"
/>
+                    <form:input path="title" cssClass="long" required="required" autofocus="autofocus"/>
                     <form:errors path="title" cssClass="error"/>
                 </p>
 
@@ -78,7 +78,7 @@
                         <label for="thumbnailUrl"><fmt:message key="widget.thumbnailUrl"/></label>
                         <input type="url" name="thumbnailUrl" id="thumbnailUrl"
                                placeholder="http://example.com/thumbnail.png" class="long"
-                                value="<c:out value="${widget.thumbnailUrl}"/>"/>
+                               value="<c:out value="${widget.thumbnailUrl}"/>"/>
                     </spring:bind>
                     <form:errors path="thumbnailUrl" cssClass="error"/>
                 </p>
@@ -88,16 +88,34 @@
                         <label for="screenshotUrl"><fmt:message key="widget.screenshotUrl"/></label>
                         <input type="url" name="screenshotUrl" id="screenshotUrl"
                                placeholder="http://example.com/screenshot.png" class="long"
-                                value="<c:out value="${widget.screenshotUrl}"/>"/>
+                               value="<c:out value="${widget.screenshotUrl}"/>"/>
                     </spring:bind>
                     <form:errors path="screenshotUrl" cssClass="error"/>
                 </p>
 
                 <p>
+                    <spring:bind path="titleUrl">
+                        <label for="titleUrl"><fmt:message key="widget.titleUrl"/></label>
+                        <input type="url" name="titleUrl" id="titleUrl"
+                               class="long" value="<c:out value="${widget.titleUrl}"/>"/>
+                    </spring:bind>
+                    <form:errors path="titleUrl" cssClass="error"/>
+                </p>
+
+                <p>
                     <form:label path="author"><fmt:message key="widget.author"/></form:label>
                     <form:input path="author" cssClass="long"/>
                     <form:errors path="author" cssClass="error"/>
                 </p>
+                <p>
+                    <spring:bind path="authorEmail">
+                        <label for="authorEmail"><fmt:message key="widget.authorEmail"/></label>
+                        <input type="email" name="authorEmail" id="authorEmail" class="long"
+                                value="<c:out value="${widget.authorEmail}"/>"/>
+                    </spring:bind>
+                    <form:errors path="titleUrl" cssClass="error"/>
+                </p>
+
             </fieldset>
             <fieldset>
                 <fmt:message key="page.addwidget.form.submit" var="submit"/>

Modified: incubator/rave/trunk/rave-portal-resources/src/main/webapp/WEB-INF/views/home.jsp
URL: http://svn.apache.org/viewvc/incubator/rave/trunk/rave-portal-resources/src/main/webapp/WEB-INF/views/home.jsp?rev=1174632&r1=1174631&r2=1174632&view=diff
==============================================================================
--- incubator/rave/trunk/rave-portal-resources/src/main/webapp/WEB-INF/views/home.jsp (original)
+++ incubator/rave/trunk/rave-portal-resources/src/main/webapp/WEB-INF/views/home.jsp Fri
Sep 23 10:21:16 2011
@@ -1,4 +1,3 @@
-<%@ page import="com.sun.xml.internal.ws.wsdl.writer.document.Import" %>
 <%--
   Licensed to the Apache Software Foundation (ASF) under one
   or more contributor license agreements.  See the NOTICE file
@@ -17,8 +16,6 @@
   specific language governing permissions and limitations
   under the License.
 
-  $Id$
-
 
 --%><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%--
 --%><%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %><%--
@@ -45,7 +42,7 @@
       </h1>
     </div>
     <input id="currentPageId" type="hidden" value="${page.entityId}" />
-    <div id="tabsHeader">      
+    <div id="tabsHeader">
         <%-- render the page tabs --%>
         <div id="tabs" class="rave-ui-tabs">
             <c:forEach var="userPage" items="${pages}">
@@ -55,16 +52,16 @@
                          <c:when test="${page.entityId == userPage.entityId}">true</c:when>
                          <c:otherwise>false</c:otherwise>
                      </c:choose>
-                 </c:set>      
+                 </c:set>
                  <c:set var="hasOnlyOnePage">
                       <c:choose>
                          <c:when test="${fn:length(pages) == 1}">true</c:when>
                          <c:otherwise>false</c:otherwise>
                      </c:choose>
-                 </c:set>                       
+                 </c:set>
                  <div id="tab-${userPage.entityId}" class="rave-ui-tab<c:if test="${isCurrentPage}">
rave-ui-tab-selected</c:if>">
                     <div id="pageTitle-${userPage.entityId}" class="page-title" onclick="rave.viewPage(${userPage.entityId});"><c:out
value="${userPage.name}"/></div>
-                    <c:if test="${isCurrentPage}">                   
+                    <c:if test="${isCurrentPage}">
                         <div id="pageMenuWrapper">
                             <span id="pageMenuButton" class="ui-icon ui-icon-circle-triangle-s"
title="Page Actions Menu"></span>
                             <div id="pageMenu" class="page-menu">
@@ -77,21 +74,30 @@
                         </div>
                     </c:if>
                 </div>
-            </c:forEach>        
+            </c:forEach>
             <%-- display the add page button at the end of the tabs --%>
             <fmt:message key="page.general.addnewpage" var="addNewPageTitle"/>
             <button id="add_page" title="${addNewPageTitle}" style="display: none;"></button>
-        </div>   
+        </div>
     </div>
     <%--render the main page content (regions/widgets) --%>
     <div id="pageContent">
         <c:forEach var="region" items="${page.regions}">
             <div class="region" id="region-${region.entityId}-id">
-                <c:forEach var="regionWidget" items="${region.regionWidgets}">    
                                                
+                <c:forEach var="regionWidget" items="${region.regionWidgets}">
                    <div class="widget-wrapper" id="widget-${regionWidget.entityId}-wrapper">
                         <div class="widget-title-bar">
                             <span id="widget-${regionWidget.entityId}-collapse" class="widget-toolbar-toggle-collapse"
title="Collapse/Restore Widget"></span>
-                            <span id="widget-${regionWidget.entityId}-title"><c:out
value="${regionWidget.widget.title}"/></span>
+                            <div id="widget-${regionWidget.entityId}-title" class="widget-title">
+                            <c:choose>
+                                <c:when test="${not empty regionWidget.widget.titleUrl}">
+                                    <a href="${regionWidget.widget.titleUrl}" rel="external"><c:out
value="${regionWidget.widget.title}"/></a>
+                                </c:when>
+                                <c:otherwise>
+                                    <c:out value="${regionWidget.widget.title}"/>
+                                </c:otherwise>
+                            </c:choose>
+                            </div>
                             <!-- These are toolbar buttons -->
                             <div id="widget-${regionWidget.entityId}-toolbar" style="float:right;">
                                 <button id="widget-${regionWidget.entityId}-prefs"
@@ -179,8 +185,8 @@
             rave.setContext("<spring:url value="/app/" />");
             rave.initProviders();
             rave.initWidgets(widgets);
-            rave.initUI();  
+            rave.initUI();
             rave.layout.init();
-        });     
+        });
     </script>
 </rave:rave_generic_page>

Modified: incubator/rave/trunk/rave-portal-resources/src/main/webapp/WEB-INF/views/widget.jsp
URL: http://svn.apache.org/viewvc/incubator/rave/trunk/rave-portal-resources/src/main/webapp/WEB-INF/views/widget.jsp?rev=1174632&r1=1174631&r2=1174632&view=diff
==============================================================================
--- incubator/rave/trunk/rave-portal-resources/src/main/webapp/WEB-INF/views/widget.jsp (original)
+++ incubator/rave/trunk/rave-portal-resources/src/main/webapp/WEB-INF/views/widget.jsp Fri
Sep 23 10:21:16 2011
@@ -63,7 +63,16 @@
             <div class="widgetDetailCenter">
 
                 <div class="storeWidgetDetail">
-                    <span class="secondaryPageItemTitle"><c:out value="${widget.title}"/></span>
+                    <span class="secondaryPageItemTitle">
+                        <c:choose>
+                            <c:when test="${not empty widget.titleUrl}">
+                                <a href="<c:out value="${widget.titleUrl}"/>" rel="external"><c:out
value="${widget.title}"/></a>
+                            </c:when>
+                            <c:otherwise>
+                                <c:out value="${widget.title}"/>
+                            </c:otherwise>
+                        </c:choose>
+                    </span>
                     <c:choose>
                         <c:when test="${widget.widgetStatus eq 'PUBLISHED'}">
                             <div id="widgetAdded_${widget.entityId}" class="storeButton">
@@ -83,7 +92,14 @@
 
                 <c:if test="${not empty widget.author}">
                     <p class="storeWidgetAuthor">
-                        <fmt:message key="widget.author"/> <c:out value="${widget.author}"/>
+                        <fmt:message key="widget.author"/>
+                        <c:out value=" "/><%-- intentional empty String in the c:out
--%>
+                        <c:choose>
+                            <c:when test="${not empty widget.authorEmail}">
+                                <a href="mailto:<c:out value="${widget.authorEmail}"/>"><c:out
value="${widget.author}"/></a>
+                            </c:when>
+                            <c:otherwise><c:out value="${widget.author}"/></c:otherwise>
+                        </c:choose>
                     </p>
                 </c:if>
 

Modified: incubator/rave/trunk/rave-portal-resources/src/main/webapp/css/default.css
URL: http://svn.apache.org/viewvc/incubator/rave/trunk/rave-portal-resources/src/main/webapp/css/default.css?rev=1174632&r1=1174631&r2=1174632&view=diff
==============================================================================
--- incubator/rave/trunk/rave-portal-resources/src/main/webapp/css/default.css (original)
+++ incubator/rave/trunk/rave-portal-resources/src/main/webapp/css/default.css Fri Sep 23
10:21:16 2011
@@ -26,7 +26,7 @@ html {
 body {
     color: #000000;
     font-size: 62.5%;
-    font-family: Arial, Helvetica, sans-serif;   
+    font-family: Arial, Helvetica, sans-serif;
     filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#D7D7D3", endColorstr="#EBEBEB");
     background: -moz-linear-gradient(center top , #D7D7D3 0%, #EBEBEB 50%) repeat scroll
0 0 transparent;
     background: -webkit-gradient(linear, left top, left bottom, from(#D7D7D3), to(#EBEBEB));
@@ -155,7 +155,7 @@ h1, h2, h3, h4, h5, h6 {
     filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#999999", endColorstr="#666666");
     background: -moz-linear-gradient(center top , #999 0%, #666 25%) repeat scroll 0 0 transparent;
     background: -webkit-gradient(linear, left top, left bottom, from(#999), to(#666));
-    border-radius: 5px 5px 0px 0px;
+    border-radius: 5px 5px 0 0;
     padding: 2px;
     border-bottom: solid 1px #CCCCCC;
     box-shadow: 2px 2px 4px #666666;
@@ -165,6 +165,20 @@ h1, h2, h3, h4, h5, h6 {
     cursor: move;
 }
 
+.widget-title {
+    display: inline;
+}
+
+.widget-title a {
+    background: none;
+    color: #ffffff;
+    text-decoration: none;
+}
+
+.widget-title a:hover {
+    text-decoration: underline;
+}
+
 /*** various widget preference related classes ***/
 .widget-prefs {
     border: 1px solid #D3D3D3;
@@ -179,7 +193,7 @@ h1, h2, h3, h4, h5, h6 {
 }
 
 .widget-prefs-label {
-    vertical-align: top;    
+    vertical-align: top;
     font-size: 0.8em;
     text-align: right;
 }
@@ -205,7 +219,7 @@ h1, h2, h3, h4, h5, h6 {
     padding: 5px;
     background-color: white;
     box-shadow: 2px 2px 4px #666666;
-    border-radius: 0px 0px 5px 5px;
+    border-radius: 0 0 5px 5px;
     height: 100%;
 }
 
@@ -444,7 +458,7 @@ button.widget-toolbar-btn-prefs {
 
 .widget-toolbar-toggle-collapse {
     display: inline-block;
-    vertical-align: middle;    
+    vertical-align: middle;
     cursor: pointer;
 }
 
@@ -499,7 +513,7 @@ span.error, label.error {
     background-color: #FFFFFF;
 }
 
-#tabs {    
+#tabs {
     border-bottom: 1px solid #B4C4CF;
     padding: 10px 15px 0 13px;
     white-space: nowrap;
@@ -512,9 +526,9 @@ span.error, label.error {
     display: inline-block;
     font-style: italic;
     font-weight: normal;
-    height: 25px; 
+    height: 25px;
     position: relative;
-    top: 1px;    
+    top: 1px;
 }
 
 .rave-ui-tab-selected {
@@ -534,9 +548,9 @@ span.error, label.error {
 #dialog label { margin-top: 0.5em; }
 #dialog input { width: 95%; }
 #dialog textarea { width: 95%; }
-#add_page { 
-    cursor: pointer; 
-    width: 18px; 
+#add_page {
+    cursor: pointer;
+    width: 18px;
     display: inline-block;
     vertical-align: middle;
     margin-left: 10px;
@@ -561,17 +575,17 @@ span.error, label.error {
 
 /* page menu related styles */
 #pageMenuWrapper {
-    position: relative;   
+    position: relative;
     display: inline-block;
     vertical-align: middle;
 }
 .page-menu {
-    border: 1px solid black; 
-    position: absolute; 
-    display: none; 
-    left: 18px; 
-    top: 0px;
-    width: 80px;   
+    border: 1px solid black;
+    position: absolute;
+    display: none;
+    left: 18px;
+    top: 0;
+    width: 80px;
     background-color: #FFFFFF;
     z-index: 1000;
     cursor: pointer;
@@ -586,6 +600,6 @@ span.error, label.error {
     color: #D3D3D3;
 }
 #pageMenuButton {
-    cursor: pointer; 
+    cursor: pointer;
     margin-right: 10px;
 }
\ No newline at end of file



Mime
View raw message