From d3a87eb35f74f0b5951e91fa7c0e04afedbbe8ee Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 6 Jun 2024 12:13:38 +0000 Subject: [PATCH] Bug 36694: (follow-up) Remove some missed instances This patch removes some missed HCSticky code/mentions as well as the entry on the About page. Signed-off-by: Owen Leonard --- .../prog/en/modules/authorities/authorities.tt | 2 -- koha-tmpl/intranet-tmpl/prog/js/members-menu.js | 2 +- koha-tmpl/intranet-tmpl/prog/js/staff-global.js | 5 +---- t/mock_templates/intranet-tmpl/prog/en/modules/about.tt | 7 +------ 4 files changed, 3 insertions(+), 13 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt index e3e73c3809..62985ba500 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt @@ -106,7 +106,6 @@ $("body").on("click", ".show-errors", function(e){ document.getElementById("form-errors").scrollIntoView(); - Sticky.hcSticky('refresh'); }); $("#preview").click(function () { @@ -371,7 +370,6 @@ } else { $("#check_errors").html( StrAlert ); $('html, body').animate({ scrollTop: 0 }, 'fast'); - Sticky.hcSticky('refresh'); return false; } } diff --git a/koha-tmpl/intranet-tmpl/prog/js/members-menu.js b/koha-tmpl/intranet-tmpl/prog/js/members-menu.js index 2a9b0cec69..88a95d5e5e 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/members-menu.js +++ b/koha-tmpl/intranet-tmpl/prog/js/members-menu.js @@ -1,4 +1,4 @@ -/* global borrowernumber advsearch dateformat __ CAN_user_borrowers_delete_borrowers CAN_user_borrowers_edit_borrowers number_of_adult_categories destination Sticky Cookies*/ +/* global borrowernumber advsearch dateformat __ CAN_user_borrowers_delete_borrowers CAN_user_borrowers_edit_borrowers number_of_adult_categories destination Cookies*/ $(document).ready(function(){ searchfield_date_tooltip(""); diff --git a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js index 2f60702e7a..c2db932606 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js +++ b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js @@ -1,4 +1,4 @@ -/* global shortcut delBasket Sticky AUDIO_ALERT_PATH Cookies */ +/* global shortcut delBasket AUDIO_ALERT_PATH Cookies */ /* exported addBibToContext delBibToContext escape_str escape_price openWindow _ removeFocus toUC confirmDelete confirmClone playSound */ if (KOHA === undefined) var KOHA = {}; @@ -168,9 +168,6 @@ $(document).ready(function () { $(".toggle_element").on("click", function (e) { e.preventDefault(); $($(this).data("element")).toggle(); - if (typeof Sticky !== "undefined" && typeof hcSticky === "function") { - Sticky.hcSticky("update"); - } }); var navmenulist = $("#navmenulist"); diff --git a/t/mock_templates/intranet-tmpl/prog/en/modules/about.tt b/t/mock_templates/intranet-tmpl/prog/en/modules/about.tt index 0f5675a5f8..765fe248d1 100644 --- a/t/mock_templates/intranet-tmpl/prog/en/modules/about.tt +++ b/t/mock_templates/intranet-tmpl/prog/en/modules/about.tt @@ -1083,11 +1083,6 @@ GreyBox JavaScript Library v5.54: GNU Lesser General Public License, version 2.1

-

HC Sticky

-

- HC Sticky JavaScript library v2.2.7: MIT License -

-

Highlight

Highlight jQuery Plugin v5.0: MIT License @@ -1339,4 +1334,4 @@ mother of Simon and Jeremy, and grandmother of Ben, Toby, Anna, Charlotte and Billy.

[% END # tab=dedications %] -[% END %] \ No newline at end of file +[% END %] -- 2.45.2