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 999-1005 Link Here
999
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
999
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
1000
    [% INCLUDE 'datatables.inc' %]
1000
    [% INCLUDE 'datatables.inc' %]
1001
    [% INCLUDE 'columns_settings.inc' %]
1001
    [% INCLUDE 'columns_settings.inc' %]
1002
    [% Asset.js("lib/hc-sticky/hc-sticky.js") | $raw %]
1003
    [% Asset.js("js/acq.js") | $raw %]
1002
    [% Asset.js("js/acq.js") | $raw %]
1004
    [% INCLUDE 'calendar.inc' %]
1003
    [% INCLUDE 'calendar.inc' %]
1005
    <script>
1004
    <script>
Lines 1015-1030 Link Here
1015
            }
1014
            }
1016
        }
1015
        }
1017
1016
1018
        var Sticky;
1019
1020
        $(document).ready(function() {
1017
        $(document).ready(function() {
1021
            if ( $('#toolbar').length ) {
1022
                Sticky = $("#toolbar");
1023
                Sticky.hcSticky({
1024
                    stickTo: "main",
1025
                    stickyClass: "floating"
1026
                });
1027
            }
1028
1018
1029
            [% UNLESS ( closedate ) %]
1019
            [% UNLESS ( closedate ) %]
1030
                $('#addtoBasket').on('show', function () {
1020
                $('#addtoBasket').on('show', function () {
1031
- 

Return to bug 36694