From 949a281efed47e856a131b9a72df75e1ef3e5053 Mon Sep 17 00:00:00 2001 From: Aleisha Date: Thu, 21 Apr 2016 22:49:29 +0000 Subject: [PATCH] Bug 16324: Move item search into header This patch makes the Search button in the header into a dropdown that holds the Advanced search and the Item search. This should be applied on top of Bug 16323 so that the dropdowns open on hover and don't require the extra click to open. To test: 1) Apply 16323 2) Hover over Search menu in header and confirm it opens 3) Confirm that Advanced search and Item search are there and both links work as expected Sponsored-by: Catalyst IT --- koha-tmpl/intranet-tmpl/prog/en/includes/header.inc | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc index 68ac671..59b4b6f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc @@ -11,6 +11,12 @@ $(document).ready(function(){ },function(){ $(".branch-menu").load(this.href).hide(); }); + + $(".search").hover(function(){ + $(".search-menu").load(this.href).show(); + },function(){ + $(".search-menu").load(this.href).hide(); + }); }); @@ -21,7 +27,13 @@ $(document).ready(function(){