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 280-286 Link Here
280
280
281
[% MACRO jsinclude BLOCK %]
281
[% MACRO jsinclude BLOCK %]
282
    [% INCLUDE 'datatables.inc' %]
282
    [% INCLUDE 'datatables.inc' %]
283
    [% Asset.js("lib/hc-sticky/hc-sticky.js") | $raw %]
284
    [% Asset.js("lib/jquery/plugins/multiple-select/multiple-select.min.js") | $raw %]
283
    [% Asset.js("lib/jquery/plugins/multiple-select/multiple-select.min.js") | $raw %]
285
    [% Asset.js( "lib/codemirror/codemirror.min.js" ) | $raw %]
284
    [% Asset.js( "lib/codemirror/codemirror.min.js" ) | $raw %]
286
    [% Asset.js( "lib/codemirror/css.min.js" ) | $raw %]
285
    [% Asset.js( "lib/codemirror/css.min.js" ) | $raw %]
Lines 299-314 Link Here
299
    [% Asset.js( "lib/sortable/Sortable.min.js" ) | $raw %]
298
    [% Asset.js( "lib/sortable/Sortable.min.js" ) | $raw %]
300
299
301
    <script>
300
    <script>
302
        var Sticky;
303
        var themelang = "[% themelang | html %]";
301
        var themelang = "[% themelang | html %]";
304
        $(document).ready(function(){
302
        $(document).ready(function(){
305
            [% UNLESS ( searchfield ) %]
306
                Sticky = $("#toolbar");
307
                Sticky.hcSticky({
308
                    stickTo: "main",
309
                    stickyClass: "floating"
310
                });
311
            [% END %]
312
            $("select[multiple='multiple']").multipleSelect( {
303
            $("select[multiple='multiple']").multipleSelect( {
313
                placeholder: _("Please select ..."),
304
                placeholder: _("Please select ..."),
314
                selectAllText: _("Select all"),
305
                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-toggle='tab']").on("shown.bs.tab", function (e) {
34
        $("a[data-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