View | Details | Raw Unified | Return to bug 36694
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/css/src/_toolbar.scss (+6 lines)
Lines 22-27 Link Here
22
        z-index: 100;
22
        z-index: 100;
23
    }
23
    }
24
24
25
    &.sticky {
26
        position: sticky;
27
        top: 0;
28
        z-index: 999;
29
    }
30
25
    .btn {
31
    .btn {
26
        &.btn-default {
32
        &.btn-default {
27
            font-weight: normal;
33
            font-weight: normal;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt (-12 / +1 lines)
Lines 79-85 Link Here
79
                        [% UNLESS ( selectbasketg ) %]
79
                        [% UNLESS ( selectbasketg ) %]
80
                            [% UNLESS ( closedate ) %]
80
                            [% UNLESS ( closedate ) %]
81
                                [% UNLESS ( delete_confirmed ) %]
81
                                [% UNLESS ( delete_confirmed ) %]
82
                                    <div id="toolbar" class="btn-toolbar fh-fixedHeader">
82
                                    <div id="toolbar" class="btn-toolbar sticky fh-fixedHeader">
83
                                        [% IF active %]
83
                                        [% IF active %]
84
                                            <div class="btn-group"><a href="#addtoBasket" role="button" class="btn btn-default" data-toggle="modal"><i class="fa fa-plus"></i> Add to basket</a></div>
84
                                            <div class="btn-group"><a href="#addtoBasket" role="button" class="btn btn-default" data-toggle="modal"><i class="fa fa-plus"></i> Add to basket</a></div>
85
                                        [% END %]
85
                                        [% END %]
Lines 993-999 Link Here
993
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
993
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
994
    [% INCLUDE 'datatables.inc' %]
994
    [% INCLUDE 'datatables.inc' %]
995
    [% INCLUDE 'columns_settings.inc' %]
995
    [% INCLUDE 'columns_settings.inc' %]
996
    [% Asset.js("lib/hc-sticky/hc-sticky.js") | $raw %]
997
    [% Asset.js("js/acq.js") | $raw %]
996
    [% Asset.js("js/acq.js") | $raw %]
998
    [% INCLUDE 'calendar.inc' %]
997
    [% INCLUDE 'calendar.inc' %]
999
    <script>
998
    <script>
Lines 1009-1024 Link Here
1009
            }
1008
            }
1010
        }
1009
        }
1011
1010
1012
        var Sticky;
1013
1014
        $(document).ready(function() {
1011
        $(document).ready(function() {
1015
            if ( $('#toolbar').length ) {
1016
                Sticky = $("#toolbar");
1017
                Sticky.hcSticky({
1018
                    stickTo: "main",
1019
                    stickyClass: "floating"
1020
                });
1021
            }
1022
1012
1023
            [% UNLESS ( closedate ) %]
1013
            [% UNLESS ( closedate ) %]
1024
                $('#addtoBasket').on('show', function () {
1014
                $('#addtoBasket').on('show', function () {
1025
- 

Return to bug 36694