From 46e7705e28846e173357db9abb4f0ecfb4a84527 Mon Sep 17 00:00:00 2001
From: Leif Johansson <leifj@sunet.se>
Date: Tue, 26 Jul 2011 16:52:33 +0200
Subject: turn it into a menubar

---
 src/main/webapp/wayf-ndn.jsp | 35 ++++++++++++++---------------------
 1 file changed, 14 insertions(+), 21 deletions(-)

(limited to 'src/main/webapp/wayf-ndn.jsp')

diff --git a/src/main/webapp/wayf-ndn.jsp b/src/main/webapp/wayf-ndn.jsp
index 68379a5..0950cd4 100644
--- a/src/main/webapp/wayf-ndn.jsp
+++ b/src/main/webapp/wayf-ndn.jsp
@@ -148,8 +148,7 @@
     <script type="text/javascript">
 $(function() {
 		   $("input:submit, input:reset, input:button, a",".button").button();
-		   $("#sites").tabs({event: 'mouseover'});
-		   $(".sitelist").menu();
+		   $(".sites").menubar();
 });
     </script>
 </head>
@@ -186,18 +185,11 @@ $(function() {
 	        <p class="text">The service you are trying to use require that you identify yourself. Please select your identity provider below...</p>
 	
 			<logic:present name="siteLists" scope="request">
-			  <div id="sites">
-				<ul>
-					<logic:present name="cookieList" scope="request">
-						<li><a href="#recently-visited">Recently Visited</a></li>
-					</logic:present>
-					<logic:iterate id="siteset" name="siteLists">
-						<li><a href="#<jsp:getProperty name="siteset" property="name"/>"><jsp:getProperty name="siteset" property="name"/></a></li>
-					</logic:iterate>
-				</ul>
+			  <ul id="sites">
 				<logic:present name="cookieList" scope="request">
-					<div id="recently-visited">
-					<ul class="sitelist">
+					<li>
+					   <a href="#recently-visited">Recently Visited</a>
+					   <ul>
 				        <logic:iterate id="site" name="cookieList">
 				            <li>
 				              <logic:present name="entityID" scope="request">
@@ -221,8 +213,7 @@ $(function() {
 				              </logic:notPresent>
 				            </li>
 				        </logic:iterate>
-				       </ul>
-				       <div style="border-top: 1px solid #CECECE; padding-top: 20px;">
+				        <li>
 					        <form method="get" action="ClearCache.wayf" >
 					          <div>
 					          <logic:notPresent name="entityID" scope="request">
@@ -241,12 +232,14 @@ $(function() {
 					          <input tabindex="20" type="submit" value="Clear List" />
 					          </div>
 					        </form>
-				        </div>
-					</div>
+					    </li> 
+				      </ul>
+					</li>
 				</logic:present>
 				<logic:iterate id="siteset" name="siteLists">
-					<div id="<jsp:getProperty name="siteset" property="name"/>">
-	                   <ul class="sitelist">
+	                <li>
+	                   <a href="#<jsp:getProperty name="siteset" property="name"/>"><jsp:getProperty name="siteset" property="name"/></a> 
+	                   <ul>
 	                   <logic:iterate id="site" name="siteset" property="sites">
 	                     <li>
 	                     <logic:present name="entityID" scope="request">
@@ -271,9 +264,9 @@ $(function() {
 			             </li>
 	                   </logic:iterate>
 	                  </ul>
-					</div>
+					</li>
 				</logic:iterate>
-			  </div>
+			  </ul>
 			</logic:present>
 	      </li>
 	    </ul>
-- 
cgit v1.1