From ec7ac2149ba8603ff1455c948c07037bf6ee030c Mon Sep 17 00:00:00 2001
From: James Moger <james.moger@gitblit.com>
Date: Mon, 22 Oct 2012 16:07:14 -0400
Subject: [PATCH] Renamed method to UserModel.canCreate(String repository)

---
 src/com/gitblit/wicket/panels/DropDownMenu.html |   26 ++------------------------
 1 files changed, 2 insertions(+), 24 deletions(-)

diff --git a/src/com/gitblit/wicket/panels/DropDownMenu.html b/src/com/gitblit/wicket/panels/DropDownMenu.html
index 5898906..0a8319e 100644
--- a/src/com/gitblit/wicket/panels/DropDownMenu.html
+++ b/src/com/gitblit/wicket/panels/DropDownMenu.html
@@ -4,31 +4,9 @@
       xml:lang="en"  
       lang="en"> 
 
-<wicket:head>
-	<script src="jquery.min.js" type="text/javascript" ></script>
-	<script type="text/javascript">
-		
-		function clearMenu() {
-			// hide the menu
-			$('a.menu, .dropdown-toggle').parent('li').removeClass('open')
-		} 
-		
-		$(document).ready(function() {
-			// hide menu when clicking anywhere else in page
-			$('html').bind('click', clearMenu)
-			$('a.menu, .dropdown-toggle').click(
-					function (e) {
-						var $li = $(this).parent('li').toggleClass('open');
-						return false;
-					}
-			);
-		});
-	</script>
-</wicket:head>
-
 <wicket:panel>
-	<a class="menu" href=""><span wicket:id="label">label</span></a>
-	<ul class="menu-dropdown">
+	<a class="dropdown-toggle" href="#" data-toggle="dropdown"><span wicket:id="label">label</span><b class="caret"></b></a>
+	<ul class="dropdown-menu">
 		<li wicket:id="menuItems"><span wicket:id="menuItem">[MenuItem]</span></li>
 	</ul>	
 </wicket:panel>

--
Gitblit v1.9.1