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 1009-1015 Link Here
1009
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
1009
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
1010
    [% INCLUDE 'datatables.inc' %]
1010
    [% INCLUDE 'datatables.inc' %]
1011
    [% INCLUDE 'columns_settings.inc' %]
1011
    [% INCLUDE 'columns_settings.inc' %]
1012
    [% Asset.js("lib/hc-sticky/hc-sticky.js") | $raw %]
1013
    [% Asset.js("js/acq.js") | $raw %]
1012
    [% Asset.js("js/acq.js") | $raw %]
1014
    [% INCLUDE 'calendar.inc' %]
1013
    [% INCLUDE 'calendar.inc' %]
1015
    <script>
1014
    <script>
Lines 1025-1040 Link Here
1025
            }
1024
            }
1026
        }
1025
        }
1027
1026
1028
        var Sticky;
1029
1030
        $(document).ready(function() {
1027
        $(document).ready(function() {
1031
            if ( $('#toolbar').length ) {
1032
                Sticky = $("#toolbar");
1033
                Sticky.hcSticky({
1034
                    stickTo: "main",
1035
                    stickyClass: "floating"
1036
                });
1037
            }
1038
1028
1039
            [% UNLESS ( closedate ) %]
1029
            [% UNLESS ( closedate ) %]
1040
                $('#addtoBasket').on('show', function () {
1030
                $('#addtoBasket').on('show', function () {
1041
- 

Return to bug 36694