Bugzilla – Attachment 51775 Details for
Bug 16323
Make dropdowns in header open on hover
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16323: Make dropdowns in header open in hover
Bug-16323-Make-dropdowns-in-header-open-in-hover.patch (text/plain), 2.99 KB, created by
PTFS Europe Sandboxes
on 2016-05-25 13:39:34 UTC
(
hide
)
Description:
Bug 16323: Make dropdowns in header open in hover
Filename:
MIME Type:
Creator:
PTFS Europe Sandboxes
Created:
2016-05-25 13:39:34 UTC
Size:
2.99 KB
patch
obsolete
>From 6e5255706cef04b2fd345287e033ad56d48ffc07 Mon Sep 17 00:00:00 2001 >From: Aleisha <aleishaamohia@hotmail.com> >Date: Thu, 21 Apr 2016 22:42:31 +0000 >Subject: [PATCH] Bug 16323: Make dropdowns in header open in hover > >To test: >1) Go to staff client >2) Hover over 'More' menu and confirm that menu opens >3) Hover over the user dropdown on the right ("username | branch") and confirm that menu opens > >Sponsored-by: Catalyst IT > >Signed-off-by: Sinziana Paltineanu <s.paltineanu@berlin.bard.edu> >--- > .../intranet-tmpl/prog/en/includes/header.inc | 25 ++++++++++++++++---- > 1 file changed, 21 insertions(+), 4 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc >index e71c99f..68ac671 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc >@@ -1,3 +1,20 @@ >+<script type="text/javascript"> >+$(document).ready(function(){ >+ $(".more").hover(function(){ >+ $(".more-menu").load(this.href).show(); >+ },function(){ >+ $(".more-menu").load(this.href).hide(); >+ }); >+ >+ $(".branch").hover(function(){ >+ $(".branch-menu").load(this.href).show(); >+ },function(){ >+ $(".branch-menu").load(this.href).hide(); >+ }); >+}); >+ >+</script> >+ > [% USE Branches %] > <div id="header" class="navbar navbar-static-top"> > <div class="navbar-inner"> >@@ -9,9 +26,9 @@ > <li><a href="#" id="cartmenulink">Cart<span id="basketcount"></span></a></li> > [% END %] > [% IntranetNav %] >- <li class="dropdown"> >+ <li class="dropdown more"> > <a href="#" class="dropdown-toggle" data-toggle="dropdown">More <b class="caret"></b></a> >- <ul class="dropdown-menu"> >+ <ul class="dropdown-menu more-menu"> > <li><a href="/cgi-bin/koha/virtualshelves/shelves.pl">Lists</a></li> > [% IF ( CAN_user_editcatalogue_edit_catalogue || CAN_user_editcatalogue_edit_items ) %] > <li><a href="/cgi-bin/koha/cataloguing/addbooks.pl">Cataloging</a></li> >@@ -41,7 +58,7 @@ > </ul> > <ul class="nav pull-right"> > [% IF ( loggedinusername ) %] >- <li class="dropdown"> >+ <li class="dropdown branch"> > <a href="#" id="drop3" role="button" class="dropdown-toggle" data-toggle="dropdown"> > <span class="loggedinusername">[% loggedinusername %]</span> > <span class="separator">|</span> >@@ -61,7 +78,7 @@ > [% END %] > <b class="caret"></b> > </a> >- <ul class="dropdown-menu" role="menu" aria-labelledby="drop3"> >+ <ul class="dropdown-menu branch-menu" role="menu" aria-labelledby="drop3"> > [% IF ( IndependentBranches ) %] > [% IF ( CAN_user_management || CAN_user_editcatalogue_edit_catalogue ) %] > <li> >-- >1.7.10.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 16323
:
50546
| 51775