Bug 21304: (follow-up) Correct hc-sticky configuration
authorOwen Leonard <oleonard@myacpl.org>
Tue, 19 Mar 2019 15:46:42 +0000 (15:46 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 22 Mar 2019 19:15:45 +0000 (19:15 +0000)
This patch corrects the element passed to the hc-sticky plugin to define
which element the floating toolbar sticks to.

To test, apply the patch and perform a search in the staff client which
will return multiple results. Confirm that scrolling down the page
triggers the floating toolbar.

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt

index 63943ba..7f3cb6f 100644 (file)
         $(document).ready(function() {
             Sticky = $("#searchheader");
             Sticky.hcSticky({
-                stickTo: "#yui-main",
+                stickTo: "main",
                 stickyClass: "floating"
             });