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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tt (-10 / +1 lines)
Lines 60-66 Link Here
60
    <h2>[% TAB.tab_title | html %] preferences</h2>
60
    <h2>[% TAB.tab_title | html %] preferences</h2>
61
    <form action="/cgi-bin/koha/admin/preferences.pl" method="post">
61
    <form action="/cgi-bin/koha/admin/preferences.pl" method="post">
62
        [% INCLUDE 'csrf-token.inc' %]
62
        [% INCLUDE 'csrf-token.inc' %]
63
        [% UNLESS ( searchfield ) %]<div id="toolbar"><button class="save-all btn btn-primary" type="submit">Save all [% TAB.tab_title | html %] preferences</button></div>[% END %]
63
        [% UNLESS ( searchfield ) %]<div id="toolbar" class="sticky"><button class="save-all btn btn-primary" type="submit">Save all [% TAB.tab_title | html %] preferences</button></div>[% END %]
64
        <input type="hidden" name="op" value="cud-save" />
64
        <input type="hidden" name="op" value="cud-save" />
65
        <input type="hidden" name="tab" value="[% TAB.tab_id | html %]" />
65
        <input type="hidden" name="tab" value="[% TAB.tab_id | html %]" />
66
66
Lines 277-283 Link Here
277
277
278
[% MACRO jsinclude BLOCK %]
278
[% MACRO jsinclude BLOCK %]
279
    [% INCLUDE 'datatables.inc' %]
279
    [% INCLUDE 'datatables.inc' %]
280
    [% Asset.js("lib/hc-sticky/hc-sticky.js") | $raw %]
281
    [% Asset.js("lib/jquery/plugins/multiple-select/multiple-select.min.js") | $raw %]
280
    [% Asset.js("lib/jquery/plugins/multiple-select/multiple-select.min.js") | $raw %]
282
    [% Asset.js( "lib/codemirror/codemirror.min.js" ) | $raw %]
281
    [% Asset.js( "lib/codemirror/codemirror.min.js" ) | $raw %]
283
    [% Asset.js( "lib/codemirror/css.min.js" ) | $raw %]
282
    [% Asset.js( "lib/codemirror/css.min.js" ) | $raw %]
Lines 296-311 Link Here
296
    [% Asset.js( "lib/sortable/Sortable.min.js" ) | $raw %]
295
    [% Asset.js( "lib/sortable/Sortable.min.js" ) | $raw %]
297
296
298
    <script>
297
    <script>
299
        var Sticky;
300
        var themelang = "[% themelang | html %]";
298
        var themelang = "[% themelang | html %]";
301
        $(document).ready(function(){
299
        $(document).ready(function(){
302
            [% UNLESS ( searchfield ) %]
303
                Sticky = $("#toolbar");
304
                Sticky.hcSticky({
305
                    stickTo: "main",
306
                    stickyClass: "floating"
307
                });
308
            [% END %]
309
            $("select[multiple='multiple']").multipleSelect( {
300
            $("select[multiple='multiple']").multipleSelect( {
310
                placeholder: _("Please select ..."),
301
                placeholder: _("Please select ..."),
311
                selectAllText: _("Select all"),
302
                selectAllText: _("Select all"),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt (-10 / +1 lines)
Lines 13-19 Link Here
13
    [% t("Koha") | html %]
13
    [% t("Koha") | html %]
14
[% END %]</title>
14
[% END %]</title>
15
[% INCLUDE 'doc-head-close.inc' %]
15
[% INCLUDE 'doc-head-close.inc' %]
16
[% Asset.js("lib/hc-sticky/hc-sticky.js") | $raw %]
17
[% INCLUDE 'select2.inc' %]
16
[% INCLUDE 'select2.inc' %]
18
<script>
17
<script>
19
    [% IF Koha.Preference('CreateAVFromCataloguing') && CAN_user_parameters_manage_auth_values %]
18
    [% IF Koha.Preference('CreateAVFromCataloguing') && CAN_user_parameters_manage_auth_values %]
Lines 30-36 Link Here
30
    $(window).load(function(){
29
    $(window).load(function(){
31
        $("#loading").hide();
30
        $("#loading").hide();
32
    });
31
    });
33
    var Sticky;
34
    $(document).ready(function() {
32
    $(document).ready(function() {
35
33
36
        $("a[data-bs-toggle='tab']").on("shown.bs.tab", function (e) {
34
        $("a[data-bs-toggle='tab']").on("shown.bs.tab", function (e) {
Lines 51-62 Link Here
51
        initializeSortable("#authoritytabs ul.sortable_field");
49
        initializeSortable("#authoritytabs ul.sortable_field");
52
        initializeSortable("#authoritytabs ul.sortable_subfield");
50
        initializeSortable("#authoritytabs ul.sortable_subfield");
53
51
54
        Sticky = $("#toolbar");
55
        Sticky.hcSticky({
56
            stickTo: "#f",
57
            stickyClass: "floating"
58
        });
59
60
        $("#addauth").click(function(){
52
        $("#addauth").click(function(){
61
            if(Check()){
53
            if(Check()){
62
                $("#f").submit();
54
                $("#f").submit();
Lines 485-491 Link Here
485
                    <input type="hidden" value="0" id="confirm_not_duplicate" name="confirm_not_duplicate" />
477
                    <input type="hidden" value="0" id="confirm_not_duplicate" name="confirm_not_duplicate" />
486
                    <input type="hidden" name="changed_authtype" value="" />
478
                    <input type="hidden" name="changed_authtype" value="" />
487
479
488
                    <div id="toolbar" class="btn-toolbar">
480
                    <div id="toolbar" class="btn-toolbar sticky">
489
                        <div class="btn-group"><a href="#" id="addauth" class="btn btn-primary" accesskey="w"><i class="fa fa-save"></i> Save</a></div>
481
                        <div class="btn-group"><a href="#" id="addauth" class="btn btn-primary" accesskey="w"><i class="fa fa-save"></i> Save</a></div>
490
                        <div class="btn-group">
482
                        <div class="btn-group">
491
                            [% IF ( authid ) %]
483
                            [% IF ( authid ) %]
492
- 

Return to bug 36694