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 266-272 Link Here
266
266
267
[% MACRO jsinclude BLOCK %]
267
[% MACRO jsinclude BLOCK %]
268
    [% INCLUDE 'datatables.inc' %]
268
    [% INCLUDE 'datatables.inc' %]
269
    [% Asset.js("lib/hc-sticky/hc-sticky.js") | $raw %]
270
    [% Asset.js("lib/jquery/plugins/multiple-select/multiple-select.min.js") | $raw %]
269
    [% Asset.js("lib/jquery/plugins/multiple-select/multiple-select.min.js") | $raw %]
271
    [% Asset.js( "lib/codemirror/codemirror.min.js" ) | $raw %]
270
    [% Asset.js( "lib/codemirror/codemirror.min.js" ) | $raw %]
272
    [% Asset.js( "lib/codemirror/css.min.js" ) | $raw %]
271
    [% Asset.js( "lib/codemirror/css.min.js" ) | $raw %]
Lines 285-300 Link Here
285
    [% Asset.js( "lib/sortable/Sortable.min.js" ) | $raw %]
284
    [% Asset.js( "lib/sortable/Sortable.min.js" ) | $raw %]
286
285
287
    <script>
286
    <script>
288
        var Sticky;
289
        var themelang = "[% themelang | html %]";
287
        var themelang = "[% themelang | html %]";
290
        $(document).ready(function(){
288
        $(document).ready(function(){
291
            [% UNLESS ( searchfield ) %]
292
                Sticky = $("#toolbar");
293
                Sticky.hcSticky({
294
                    stickTo: "main",
295
                    stickyClass: "floating"
296
                });
297
            [% END %]
298
            $("select[multiple='multiple']").multipleSelect( {
289
            $("select[multiple='multiple']").multipleSelect( {
299
                placeholder: _("Please select ..."),
290
                placeholder: _("Please select ..."),
300
                selectAllText: _("Select all"),
291
                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 60-71 Link Here
60
            });
58
            });
61
        });
59
        });
62
60
63
        Sticky = $("#toolbar");
64
        Sticky.hcSticky({
65
            stickTo: "#f",
66
            stickyClass: "floating"
67
        });
68
69
        $("#addauth").click(function(){
61
        $("#addauth").click(function(){
70
            if(Check()){
62
            if(Check()){
71
                $("#f").submit();
63
                $("#f").submit();
Lines 494-500 Link Here
494
                    <input type="hidden" value="0" id="confirm_not_duplicate" name="confirm_not_duplicate" />
486
                    <input type="hidden" value="0" id="confirm_not_duplicate" name="confirm_not_duplicate" />
495
                    <input type="hidden" name="changed_authtype" value="" />
487
                    <input type="hidden" name="changed_authtype" value="" />
496
488
497
                    <div id="toolbar" class="btn-toolbar">
489
                    <div id="toolbar" class="btn-toolbar sticky">
498
                        <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"><a href="#" id="addauth" class="btn btn-primary" accesskey="w"><i class="fa fa-save"></i> Save</a></div>
499
                        <div class="btn-group">
491
                        <div class="btn-group">
500
                            [% IF ( authid ) %]
492
                            [% IF ( authid ) %]
501
- 

Return to bug 36694