From 0fb47c66ba7862f94ff61964fd4a1303eddde74c Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Thu, 25 Apr 2024 19:58:59 +0000 Subject: [PATCH] Bug 36694: Remove HC sticky from catalogue/ pages --- .../prog/en/modules/catalogue/advsearch.tt | 13 +++---------- .../prog/en/modules/catalogue/itemsearch.tt | 8 +------- .../prog/en/modules/catalogue/results.tt | 2 +- koha-tmpl/intranet-tmpl/prog/js/pages/results.js | 7 ------- 4 files changed, 5 insertions(+), 25 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt index 0d0ec4ce3f..2d981998f3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt @@ -81,7 +81,7 @@

Advanced search

-
+
@@ -101,7 +101,7 @@
[% IF Koha.Preference('EnableSearchHistory') %] -
+ [% END %] @@ -209,7 +209,6 @@ [% END %] -
[% WRAPPER tabs id= "advsearches" %] @@ -401,12 +400,12 @@

+
[% MACRO jsinclude BLOCK %] - [% Asset.js("lib/hc-sticky/hc-sticky.js") | $raw %] [% Asset.js("js/browser.js") | $raw %] [% Asset.css("css/humanmsg.css") | $raw %] [% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %] @@ -423,17 +422,11 @@ line.removeChild(ButtonPlus); } - var Sticky; $(document).ready(function() { $("input[name=q]:eq(0)").focus(); if( $("#advsearches .tab-pane.active").length < 1 ){ $("#advsearches a:first").tab("show"); } - Sticky = $("#toolbar"); - Sticky.hcSticky({ - stickTo: ".main", - stickyClass: "floating" - }); [% IF search_groups %] function branch_limit() { if( $("#branchloop").val() != "" ){ diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt index 59b4c9225a..ac78fcb0ef 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt @@ -176,7 +176,7 @@

Item search

-
+
@@ -287,7 +287,6 @@ [% MACRO jsinclude BLOCK %] [% INCLUDE 'datatables.inc' %] [% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %] - [% Asset.js("lib/hc-sticky/hc-sticky.js") | $raw %] [% INCLUDE 'select2.inc' %]