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 1245-1251 Link Here
1245
                        [% END %]
1245
                        [% END %]
1246
1246
1247
                        <h2>Existing holds</h2>
1247
                        <h2>Existing holds</h2>
1248
                        <div id="toolbar" class="btn-toolbar">
1248
                        <div id="toolbar" class="btn-toolbar sticky">
1249
                            <div class="btn-group">
1249
                            <div class="btn-group">
1250
                                <input type="hidden" name="op" value="cud-modifyall">
1250
                                <input type="hidden" name="op" value="cud-modifyall">
1251
                                <input type="submit" class="btn btn-primary" name="submit" value="Update hold(s)" />
1251
                                <input type="submit" class="btn btn-primary" name="submit" value="Update hold(s)" />
Lines 1480-1486 Link Here
1480
    [% INCLUDE 'datatables.inc' %]
1480
    [% INCLUDE 'datatables.inc' %]
1481
    [% INCLUDE 'calendar.inc' %]
1481
    [% INCLUDE 'calendar.inc' %]
1482
    [% INCLUDE 'columns_settings.inc' %]
1482
    [% INCLUDE 'columns_settings.inc' %]
1483
    [% Asset.js("lib/hc-sticky/hc-sticky.js") | $raw %]
1484
    [% INCLUDE 'select2.inc' %]
1483
    [% INCLUDE 'select2.inc' %]
1485
    [% Asset.js("js/holds.js") | $raw%]
1484
    [% Asset.js("js/holds.js") | $raw%]
1486
    [% Asset.js("js/form-submit.js") | $raw%]
1485
    [% Asset.js("js/form-submit.js") | $raw%]
Lines 1498-1504 Link Here
1498
                "bKohaColumnsUseNames": true,
1497
                "bKohaColumnsUseNames": true,
1499
           }, hold_table_settings);
1498
           }, hold_table_settings);
1500
        });
1499
        });
1501
        var Sticky;
1502
        var biblionumbers = [[% biblionumbers.join(', ') | $raw %]];
1500
        var biblionumbers = [[% biblionumbers.join(', ') | $raw %]];
1503
        var borrowernumber = "[% patron.borrowernumber | $raw %]";
1501
        var borrowernumber = "[% patron.borrowernumber | $raw %]";
1504
        var patron_homebranch = "[% To.json( Branches.GetName( patron.branchcode ) ) | $raw %]";
1502
        var patron_homebranch = "[% To.json( Branches.GetName( patron.branchcode ) ) | $raw %]";
Lines 1865-1876 Link Here
1865
                [% END %]
1863
                [% END %]
1866
            [% END %]
1864
            [% END %]
1867
1865
1868
            Sticky = $("#toolbar");
1869
            Sticky.hcSticky({
1870
                stickTo: "#existing_holds",
1871
                stickyClass: "floating"
1872
            });
1873
1874
            [% IF Koha.Preference('EnableItemGroupHolds') %]
1866
            [% IF Koha.Preference('EnableItemGroupHolds') %]
1875
                $(':radio[name="item_group_id"]').change(function(){
1867
                $(':radio[name="item_group_id"]').change(function(){
1876
                    $('input[name="checkitem"]').prop('checked', false);
1868
                    $('input[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 320-326 Link Here
320
                        [% END %]
320
                        [% END %]
321
                    </h1>
321
                    </h1>
322
322
323
                    <div id="toolbar" class="btn-toolbar">
323
                    <div id="toolbar" class="btn-toolbar sticky">
324
                        <div class="btn-group">
324
                        <div class="btn-group">
325
                            <button class="btn btn-primary" id="submit_form"><i class="fa fa-save"></i> Save</button>
325
                            <button class="btn btn-primary" id="submit_form"><i class="fa fa-save"></i> Save</button>
326
                            <button class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
326
                            <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 320-326 Link Here
320
                [% IF ( do_it ) %]
320
                [% IF ( do_it ) %]
321
                    [% IF ( total ) %]
321
                    [% IF ( total ) %]
322
                        <h3>Log entries</h3>
322
                        <h3>Log entries</h3>
323
                        <div id="toolbar" class="btn-toolbar">
323
                        <div id="toolbar" class="btn-toolbar sticky">
324
                            <a href="#" id="select_none" class="btn btn-link disabled"><i class="fa fa-times"></i> Check none</a>
324
                            <a href="#" id="select_none" class="btn btn-link disabled"><i class="fa fa-times"></i> Check none</a>
325
                            <button class="btn btn-link disabled compare_link"><i class="fa fa-columns"></i> Compare selected</button>
325
                            <button class="btn btn-link disabled compare_link"><i class="fa fa-columns"></i> Compare selected</button>
326
                        </div>
326
                        </div>
Lines 483-489 Link Here
483
    [% INCLUDE 'columns_settings.inc' %]
483
    [% INCLUDE 'columns_settings.inc' %]
484
    [% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %]
484
    [% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %]
485
    [% Asset.js("js/tools-menu.js") | $raw %]
485
    [% Asset.js("js/tools-menu.js") | $raw %]
486
    [% Asset.js("lib/hc-sticky/hc-sticky.js") | $raw %]
487
    [% IF ( circulation ) %]
486
    [% IF ( circulation ) %]
488
        [% INCLUDE 'str/members-menu.inc' %]
487
        [% INCLUDE 'str/members-menu.inc' %]
489
        [% Asset.js("js/members-menu.js") | $raw %]
488
        [% 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