Author: jonathan
Date: Wed Jul  9 17:31:57 2008
New Revision: 19055
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=19055

Log:
MASHUP-915: synchronization and simplified appearance of the "Show this query 
on my home page" button.

Modified:
   trunk/mashup/java/modules/www/search.jsp

Modified: trunk/mashup/java/modules/www/search.jsp
URL: 
http://wso2.org/svn/browse/wso2/trunk/mashup/java/modules/www/search.jsp?rev=19055&r1=19054&r2=19055&view=diff
==============================================================================
--- trunk/mashup/java/modules/www/search.jsp    (original)
+++ trunk/mashup/java/modules/www/search.jsp    Wed Jul  9 17:31:57 2008
@@ -424,8 +424,9 @@
                     alert("Trouble contacting WSO2 Mashup Server ajax service. 
 Please try again later.");
                 },
                 onSuccess: function (transport) {
-                    $('addToHomePage').disable();
-                    $('isNewQuery').show();
+                    $('addToHomePage1').disable();
+                    $('addToHomePage2').disable();
+                    $('addToHomePage1').value = $('addToHomePage2').value = 
"This query appears on your home page";
                 }
             });
         }
@@ -895,12 +896,9 @@
     }
 
     if (RegistryUtils.isLoggedIn(userRegistry)) { %>
-<input id="addToHomePage" type="button" value="Show this query on my home page"
+<input id="addToHomePage1" type="button" value="<% if (!isNewQuery) {%>This 
query appears on your home page<% } else { %>Show this query on my home page<% 
} %>"
        onClick="saveQuery()"
        <% if (!isNewQuery) {%>disabled<% } %>/>
-<span id="isNewQuery"
-      <% if (isNewQuery) {%>style="display:none"<% } %>>This query appears on 
your <a
-        href="index.jsp">home page</a>.</span>
 <input id="queryTitle" type="hidden" value="<%=queryTitle %>"/>
 <input id="queryParams" type="hidden" 
value="<%=QueryParamUtils.paramsToString(queryParams) %>"/>
 <input id="queryPath" type="hidden" value="<%=queryPath %>"/>
@@ -1074,12 +1072,9 @@
 <br/>
 
 <% if (RegistryUtils.isLoggedIn(userRegistry)) { %>
-<input id="addToHomePage" type="button" value="Show this query on my home page"
+<input id="addToHomePage2" type="button" value="<% if (!isNewQuery) {%>This 
query appears on your home page<% } else { %>Show this query on my home page<% 
} %>"
        onClick="saveQuery()"
        <% if (!isNewQuery) {%>disabled<% } %>/>
-<span id="isNewQuery"
-      <% if (isNewQuery) {%>style="display:none"<% } %>>This query appears on 
your <a
-        href="index.jsp">home page</a>.</span>
 <input id="queryTitle" type="hidden" value="<%=queryTitle %>"/>
 <input id="queryParams" type="hidden" 
value="<%=QueryParamUtils.paramsToString(queryParams) %>"/>
 <input id="queryPath" type="hidden" value="<%=queryPath %>"/>

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

Reply via email to