Bugzilla – Attachment 90755 Details for
Bug 23096
Add floating toolbar to OPAC lists
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23096: Add floating toolbar to OPAC lists
Bug-23096-Add-floating-toolbar-to-OPAC-lists.patch (text/plain), 2.33 KB, created by
Owen Leonard
on 2019-06-18 15:14:40 UTC
(
hide
)
Description:
Bug 23096: Add floating toolbar to OPAC lists
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2019-06-18 15:14:40 UTC
Size:
2.33 KB
patch
obsolete
>From 447ba508fe36c9e44995ee776a91bdb430f7e2d8 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Tue, 11 Jun 2019 16:46:27 +0000 >Subject: [PATCH] Bug 23096: Add floating toolbar to OPAC lists > >This patch makes the list contents table's toolbar "stick" to the top of >the screen when scrolling. Minor markup changes have been made to enable >this change. > >To test, apply the patch and open a list in the OPAC which has multiple >titles on it. Confirm that the toolbar sticks to the top of the screen >when you scroll down. >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt | 10 ++++++++++ > 1 file changed, 10 insertions(+) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt >index b837bcd..8a02c31 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt >@@ -159,6 +159,7 @@ > </h3> > > [% IF ( itemsloop ) %] >+ <div id="floating"> > <div id="toolbar" class="toolbar clearfix"> > <div class="list-actions"> > <a class="newshelf" href="/cgi-bin/koha/opac-shelves.pl?op=add_form">New list</a> <span class="sep">|</span> >@@ -282,6 +283,7 @@ > [% END %] > </span> <!-- / .links --> > </div> <!-- / #selections-toolbar --> >+ </div> <!-- /#floating --> > > <form action="/cgi-bin/koha/opac-shelves.pl" method="post" id="myform" name="myform" class="checkboxed"> > [% IF can_manage_shelf %] >@@ -764,6 +766,7 @@ > [% INCLUDE 'opac-bottom.inc' %] > [% BLOCK jsinclude %] > [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %] >+[% Asset.js("lib/hc-sticky.js") | $raw %] > <script> > //<![CDATA[ > var MSG_REMOVE_FROM_LIST = _("Are you sure you want to remove these items from the list?"); >@@ -962,6 +965,13 @@ $(function() { > [% END %] > > AdjustRemark(); >+ >+ Sticky = $("#floating"); >+ Sticky.hcSticky({ >+ stickTo: "#usershelves", >+ stickyClass: "floating" >+ }); >+ > }); // document.ready > > function AdjustRemark() { >-- >2.1.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 23096
:
90512
|
90755
|
90763
|
90964