Bug 36694: Remove HC sticky from acqui/basket.tt

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Lucas Gass 2024-04-24 22:45:50 +00:00 committed by Katrin Fischer
parent 0f1f061233
commit 6f819b68d3
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
2 changed files with 7 additions and 11 deletions

View File

@ -22,6 +22,12 @@
z-index: 100;
}
&.sticky {
position: sticky;
top: 0;
z-index: 999;
}
.btn {
&.btn-default {
font-weight: normal;

View File

@ -81,7 +81,7 @@
[% UNLESS ( selectbasketg ) %]
[% UNLESS ( closedate ) %]
[% UNLESS ( delete_confirmed ) %]
<div id="toolbar" class="btn-toolbar fh-fixedHeader">
<div id="toolbar" class="btn-toolbar sticky fh-fixedHeader">
[% IF active %]
<div class="btn-group"><a href="#addtoBasket" role="button" class="btn btn-default" data-bs-toggle="modal"><i class="fa fa-plus"></i> Add to basket</a></div>
[% END %]
@ -1009,7 +1009,6 @@
[% Asset.js("js/acquisitions-menu.js") | $raw %]
[% INCLUDE 'datatables.inc' %]
[% INCLUDE 'columns_settings.inc' %]
[% Asset.js("lib/hc-sticky/hc-sticky.js") | $raw %]
[% Asset.js("js/acq.js") | $raw %]
[% INCLUDE 'calendar.inc' %]
<script>
@ -1025,16 +1024,7 @@
}
}
var Sticky;
$(document).ready(function() {
if ( $('#toolbar').length ) {
Sticky = $("#toolbar");
Sticky.hcSticky({
stickTo: "main",
stickyClass: "floating"
});
}
[% UNLESS ( closedate ) %]
$('#addtoBasket').on('show', function () {