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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt (-9 / +1 lines)
Lines 1080-1086 Link Here
1080
                        [% END %]
1080
                        [% END %]
1081
1081
1082
                        <h2>Existing holds</h2>
1082
                        <h2>Existing holds</h2>
1083
                        <div id="toolbar" class="btn-toolbar">
1083
                        <div id="toolbar" class="btn-toolbar sticky">
1084
                            <div class="btn-group">
1084
                            <div class="btn-group">
1085
                                <input type="hidden" name="op" value="cud-modifyall">
1085
                                <input type="hidden" name="op" value="cud-modifyall">
1086
                                <input type="submit" class="btn btn-primary" name="submit" value="Update hold(s)" />
1086
                                <input type="submit" class="btn btn-primary" name="submit" value="Update hold(s)" />
Lines 1315-1321 Link Here
1315
    [% INCLUDE 'datatables.inc' %]
1315
    [% INCLUDE 'datatables.inc' %]
1316
    [% INCLUDE 'calendar.inc' %]
1316
    [% INCLUDE 'calendar.inc' %]
1317
    [% INCLUDE 'columns_settings.inc' %]
1317
    [% INCLUDE 'columns_settings.inc' %]
1318
    [% Asset.js("lib/hc-sticky/hc-sticky.js") | $raw %]
1319
    [% INCLUDE 'select2.inc' %]
1318
    [% INCLUDE 'select2.inc' %]
1320
    [% Asset.js("js/holds.js") | $raw%]
1319
    [% Asset.js("js/holds.js") | $raw%]
1321
1320
Lines 1332-1338 Link Here
1332
                "bKohaColumnsUseNames": true,
1331
                "bKohaColumnsUseNames": true,
1333
           }, hold_table_settings);
1332
           }, hold_table_settings);
1334
        });
1333
        });
1335
        var Sticky;
1336
        var biblionumbers = [[% biblionumbers.join(', ') | $raw %]];
1334
        var biblionumbers = [[% biblionumbers.join(', ') | $raw %]];
1337
        var borrowernumber = "[% patron.borrowernumber | $raw %]";
1335
        var borrowernumber = "[% patron.borrowernumber | $raw %]";
1338
        var patron_homebranch = "[% To.json( Branches.GetName( patron.branchcode ) ) | $raw %]";
1336
        var patron_homebranch = "[% To.json( Branches.GetName( patron.branchcode ) ) | $raw %]";
Lines 1687-1698 Link Here
1687
                [% END %]
1685
                [% END %]
1688
            [% END %]
1686
            [% END %]
1689
1687
1690
            Sticky = $("#toolbar");
1691
            Sticky.hcSticky({
1692
                stickTo: "#existing_holds",
1693
                stickyClass: "floating"
1694
            });
1695
1696
            [% IF Koha.Preference('EnableItemGroupHolds') %]
1688
            [% IF Koha.Preference('EnableItemGroupHolds') %]
1697
                $(':radio[name="item_group_id"]').change(function(){
1689
                $(':radio[name="item_group_id"]').change(function(){
1698
                    $(':radio[name="checkitem"]').prop('checked', false);
1690
                    $(':radio[name="checkitem"]').prop('checked', false);
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt (-7 / +1 lines)
Lines 203-209 Link Here
203
[% BLOCK add_form %]
203
[% BLOCK add_form %]
204
    <h1>[% PROCESS page_heading %]</h1>
204
    <h1>[% PROCESS page_heading %]</h1>
205
205
206
    <div id="toolbar" class="btn-toolbar">
206
    <div id="toolbar" class="btn-toolbar sticky">
207
        <div class="btn-group">
207
        <div class="btn-group">
208
            <button class="btn btn-primary" id="submit_form"><i class="fa fa-save"></i> Save</button>
208
            <button class="btn btn-primary" id="submit_form"><i class="fa fa-save"></i> Save</button>
209
            <button class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
209
            <button class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
Lines 553-559 Link Here
553
    [% INCLUDE 'calendar.inc' %]
553
    [% INCLUDE 'calendar.inc' %]
554
    [% INCLUDE 'select2.inc' %]
554
    [% INCLUDE 'select2.inc' %]
555
    [% Asset.js("js/tools-menu.js") | $raw %]
555
    [% Asset.js("js/tools-menu.js") | $raw %]
556
    [% Asset.js("lib/hc-sticky/hc-sticky.js") | $raw %]
557
    <script>
556
    <script>
558
        $("#saveandcontinue").on("click",function(e){
557
        $("#saveandcontinue").on("click",function(e){
559
            e.preventDefault();
558
            e.preventDefault();
Lines 705-715 Link Here
705
                    $("#add_additional_content").submit();
704
                    $("#add_additional_content").submit();
706
                });
705
                });
707
706
708
                Sticky = $("#toolbar");
709
                Sticky.hcSticky({
710
                    stickTo: ".main",
711
                    stickyClass: "floating"
712
                });
713
                $("#location").select2({ width: '50%' });
707
                $("#location").select2({ width: '50%' });
714
            });
708
            });
715
        </script>
709
        </script>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/automatic_item_modification_by_age.tt (-9 / +1 lines)
Lines 50-56 Link Here
50
          <form method="post" id="rules_form" action="/cgi-bin/koha/tools/automatic_item_modification_by_age.pl">
50
          <form method="post" id="rules_form" action="/cgi-bin/koha/tools/automatic_item_modification_by_age.pl">
51
              [% INCLUDE 'csrf-token.inc' %]
51
              [% INCLUDE 'csrf-token.inc' %]
52
            <h1>Rules for automatic item modifications by age</h1>
52
            <h1>Rules for automatic item modifications by age</h1>
53
            <div id="toolbar" class="btn-toolbar">
53
            <div id="toolbar" class="btn-toolbar sticky">
54
                <div class="btn-group">
54
                <div class="btn-group">
55
                    <button class="btn btn-default add_rule"><i class="fa fa-plus"></i> Add rule</button>
55
                    <button class="btn btn-default add_rule"><i class="fa fa-plus"></i> Add rule</button>
56
                </div>
56
                </div>
Lines 290-304 Link Here
290
    [% Asset.js("js/automatic_item_modification_by_age.js") | $raw %]
290
    [% Asset.js("js/automatic_item_modification_by_age.js") | $raw %]
291
    [% IF op == 'edit_form' %]
291
    [% IF op == 'edit_form' %]
292
        <script>
292
        <script>
293
            var Sticky;
294
            $(document).ready(function() {
293
            $(document).ready(function() {
295
                  [% IF ( op == 'edit_form' ) %]
296
                Sticky = $("#toolbar");
297
                Sticky.hcSticky({
298
                    stickTo: "main",
299
                    stickyClass: "floating"
300
                });
301
                  [% END %]
302
                  [% IF rules.size > 0 %]
294
                  [% IF rules.size > 0 %]
303
                      $("#norules").hide();
295
                      $("#norules").hide();
304
                  [% ELSE %]
296
                  [% ELSE %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt (-1 / +1 lines)
Lines 299-305 Link Here
299
                        [% END %]
299
                        [% END %]
300
                    </h1>
300
                    </h1>
301
301
302
                    <div id="toolbar" class="btn-toolbar">
302
                    <div id="toolbar" class="btn-toolbar sticky">
303
                        <div class="btn-group">
303
                        <div class="btn-group">
304
                            <button class="btn btn-primary" id="submit_form"><i class="fa fa-save"></i> Save</button>
304
                            <button class="btn btn-primary" id="submit_form"><i class="fa fa-save"></i> Save</button>
305
                            <button class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
305
                            <button class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt (-2 / +1 lines)
Lines 316-322 Link Here
316
                [% IF ( do_it ) %]
316
                [% IF ( do_it ) %]
317
                    [% IF ( total ) %]
317
                    [% IF ( total ) %]
318
                        <h3>Log entries</h3>
318
                        <h3>Log entries</h3>
319
                        <div id="toolbar" class="btn-toolbar">
319
                        <div id="toolbar" class="btn-toolbar sticky">
320
                            <a href="#" id="select_none" class="btn btn-link disabled"><i class="fa fa-times"></i> Check none</a>
320
                            <a href="#" id="select_none" class="btn btn-link disabled"><i class="fa fa-times"></i> Check none</a>
321
                            <button class="btn btn-link disabled compare_link"><i class="fa fa-columns"></i> Compare selected</button>
321
                            <button class="btn btn-link disabled compare_link"><i class="fa fa-columns"></i> Compare selected</button>
322
                        </div>
322
                        </div>
Lines 477-483 Link Here
477
    [% INCLUDE 'columns_settings.inc' %]
477
    [% INCLUDE 'columns_settings.inc' %]
478
    [% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %]
478
    [% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %]
479
    [% Asset.js("js/tools-menu.js") | $raw %]
479
    [% Asset.js("js/tools-menu.js") | $raw %]
480
    [% Asset.js("lib/hc-sticky/hc-sticky.js") | $raw %]
481
    [% IF ( circulation ) %]
480
    [% IF ( circulation ) %]
482
        [% INCLUDE 'str/members-menu.inc' %]
481
        [% INCLUDE 'str/members-menu.inc' %]
483
        [% Asset.js("js/members-menu.js") | $raw %]
482
        [% Asset.js("js/members-menu.js") | $raw %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt (-10 / +1 lines)
Lines 257-263 Link Here
257
                        [% END %]
257
                        [% END %]
258
258
259
                        [% IF itemsloop %]
259
                        [% IF itemsloop %]
260
                            <div id="searchheader" class="searchheader noprint">
260
                            <div id="searchheader" class="searchheader noprint sticky">
261
                                <div id="selection_ops">
261
                                <div id="selection_ops">
262
                                    <span class="checkall"></span> |
262
                                    <span class="checkall"></span> |
263
                                    <span class="clearall"></span>
263
                                    <span class="clearall"></span>
Lines 611-619 Link Here
611
        </script>
611
        </script>
612
    [% END #/print %]
612
    [% END #/print %]
613
613
614
    [% IF op == 'view' %]
615
        [% Asset.js("lib/hc-sticky/hc-sticky.js") | $raw %]
616
    [% END %]
617
    <script>
614
    <script>
618
        var MSG_NO_ITEM_SELECTED = _("Nothing is selected.");
615
        var MSG_NO_ITEM_SELECTED = _("Nothing is selected.");
619
        var MSG_REMOVE_FROM_LIST = _("Are you sure you want to remove these items from the list?");
616
        var MSG_REMOVE_FROM_LIST = _("Are you sure you want to remove these items from the list?");
Lines 701-713 Link Here
701
        [% END # /IF op == 'list' %]
698
        [% END # /IF op == 'list' %]
702
699
703
        [% IF shelf AND op == 'view' %]
700
        [% IF shelf AND op == 'view' %]
704
            var Sticky;
705
            $(document).ready(function(){
701
            $(document).ready(function(){
706
                Sticky = $("#searchheader");
707
                Sticky.hcSticky({
708
                    stickTo: "#listform",
709
                    stickyClass: "floating"
710
                });
711
                $("span.clearall").html("<a id=\"CheckNone\" href=\"/cgi-bin/koha/shelves.pl\"><i class=\"fa fa-times\"></i>"+_(" Clear all")+"<\/a>");
702
                $("span.clearall").html("<a id=\"CheckNone\" href=\"/cgi-bin/koha/shelves.pl\"><i class=\"fa fa-times\"></i>"+_(" Clear all")+"<\/a>");
712
                $("span.checkall").html("<a id=\"CheckAll\" href=\"/cgi-bin/koha/shelves.pl\"><i class=\"fa fa-check\"></i>"+_(" Select all")+"<\/a>");
703
                $("span.checkall").html("<a id=\"CheckAll\" href=\"/cgi-bin/koha/shelves.pl\"><i class=\"fa fa-check\"></i>"+_(" Select all")+"<\/a>");
713
                $("#CheckAll").click(function(e){
704
                $("#CheckAll").click(function(e){
(-)a/koha-tmpl/intranet-tmpl/prog/js/letter.js (-10 lines)
Lines 56-72 function confirmFormatOverwrite( event ) { Link Here
56
    }
56
    }
57
}
57
}
58
58
59
var Sticky;
60
61
$(document).ready(function() {
59
$(document).ready(function() {
62
    if( add_form || copy_form ){
63
        Sticky = $("#toolbar");
64
        Sticky.hcSticky({
65
            stickTo: ".main",
66
            stickyClass: "floating"
67
        });
68
    }
69
70
    var ntable = KohaTable("lettert", {
60
    var ntable = KohaTable("lettert", {
71
        "autoWidth": false,
61
        "autoWidth": false,
72
        "paging": false,
62
        "paging": false,
(-)a/koha-tmpl/intranet-tmpl/prog/js/viewlog.js (-11 lines)
Lines 1-5 Link Here
1
var Sticky;
2
3
function tickAll(section){
1
function tickAll(section){
4
    $("input[type='checkbox'][name='" + section + "']").prop("checked", true);
2
    $("input[type='checkbox'][name='" + section + "']").prop("checked", true);
5
    $("#" + section.slice(0,-1) + "ALL").prop("checked", true);
3
    $("#" + section.slice(0,-1) + "ALL").prop("checked", true);
Lines 58-71 $(document).ready(function(){ Link Here
58
        $("#toolbar").remove();
56
        $("#toolbar").remove();
59
    }
57
    }
60
58
61
    if ($('#toolbar').length) {
62
        Sticky = $("#toolbar");
63
        Sticky.hcSticky({
64
            stickTo: "main",
65
            stickyClass: "floating"
66
        });
67
    }
68
69
    if ( $('input[type="checkbox"][name="modules"]:checked').length == 0 ) {
59
    if ( $('input[type="checkbox"][name="modules"]:checked').length == 0 ) {
70
        tickAll('modules');
60
        tickAll('modules');
71
    }
61
    }
72
- 

Return to bug 36694