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 1251-1257 Link Here
1251
                        [% END %]
1251
                        [% END %]
1252
1252
1253
                        <h2>Existing holds</h2>
1253
                        <h2>Existing holds</h2>
1254
                        <div id="toolbar" class="btn-toolbar">
1254
                        <div id="toolbar" class="btn-toolbar sticky">
1255
                            <div class="btn-group">
1255
                            <div class="btn-group">
1256
                                <input type="hidden" name="op" value="cud-modifyall">
1256
                                <input type="hidden" name="op" value="cud-modifyall">
1257
                                <input type="submit" class="btn btn-primary" name="submit" value="Update hold(s)" />
1257
                                <input type="submit" class="btn btn-primary" name="submit" value="Update hold(s)" />
Lines 1486-1492 Link Here
1486
    [% INCLUDE 'datatables.inc' %]
1486
    [% INCLUDE 'datatables.inc' %]
1487
    [% INCLUDE 'calendar.inc' %]
1487
    [% INCLUDE 'calendar.inc' %]
1488
    [% INCLUDE 'columns_settings.inc' %]
1488
    [% INCLUDE 'columns_settings.inc' %]
1489
    [% Asset.js("lib/hc-sticky/hc-sticky.js") | $raw %]
1490
    [% INCLUDE 'select2.inc' %]
1489
    [% INCLUDE 'select2.inc' %]
1491
    [% Asset.js("js/holds.js") | $raw%]
1490
    [% Asset.js("js/holds.js") | $raw%]
1492
    [% Asset.js("js/form-submit.js") | $raw%]
1491
    [% Asset.js("js/form-submit.js") | $raw%]
Lines 1504-1510 Link Here
1504
                "bKohaColumnsUseNames": true,
1503
                "bKohaColumnsUseNames": true,
1505
           }, hold_table_settings);
1504
           }, hold_table_settings);
1506
        });
1505
        });
1507
        var Sticky;
1508
        var biblionumbers = [[% biblionumbers.join(', ') | $raw %]];
1506
        var biblionumbers = [[% biblionumbers.join(', ') | $raw %]];
1509
        var borrowernumber = "[% patron.borrowernumber | $raw %]";
1507
        var borrowernumber = "[% patron.borrowernumber | $raw %]";
1510
        var patron_homebranch = "[% To.json( Branches.GetName( patron.branchcode ) ) | $raw %]";
1508
        var patron_homebranch = "[% To.json( Branches.GetName( patron.branchcode ) ) | $raw %]";
Lines 1849-1860 Link Here
1849
                [% END %]
1847
                [% END %]
1850
            [% END %]
1848
            [% END %]
1851
1849
1852
            Sticky = $("#toolbar");
1853
            Sticky.hcSticky({
1854
                stickTo: "#existing_holds",
1855
                stickyClass: "floating"
1856
            });
1857
1858
            [% IF Koha.Preference('EnableItemGroupHolds') %]
1850
            [% IF Koha.Preference('EnableItemGroupHolds') %]
1859
                $(':radio[name="item_group_id"]').change(function(){
1851
                $(':radio[name="item_group_id"]').change(function(){
1860
                    $('input[name="checkitem"]').prop('checked', false);
1852
                    $('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 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 319-325 Link Here
319
                [% IF ( do_it ) %]
319
                [% IF ( do_it ) %]
320
                    [% IF ( total ) %]
320
                    [% IF ( total ) %]
321
                        <h3>Log entries</h3>
321
                        <h3>Log entries</h3>
322
                        <div id="toolbar" class="btn-toolbar">
322
                        <div id="toolbar" class="btn-toolbar sticky">
323
                            <a href="#" id="select_none" class="btn btn-link disabled"><i class="fa fa-times"></i> Check none</a>
323
                            <a href="#" id="select_none" class="btn btn-link disabled"><i class="fa fa-times"></i> Check none</a>
324
                            <button class="btn btn-link disabled compare_link"><i class="fa fa-columns"></i> Compare selected</button>
324
                            <button class="btn btn-link disabled compare_link"><i class="fa fa-columns"></i> Compare selected</button>
325
                        </div>
325
                        </div>
Lines 480-486 Link Here
480
    [% INCLUDE 'columns_settings.inc' %]
480
    [% INCLUDE 'columns_settings.inc' %]
481
    [% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %]
481
    [% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %]
482
    [% Asset.js("js/tools-menu.js") | $raw %]
482
    [% Asset.js("js/tools-menu.js") | $raw %]
483
    [% Asset.js("lib/hc-sticky/hc-sticky.js") | $raw %]
484
    [% IF ( circulation ) %]
483
    [% IF ( circulation ) %]
485
        [% INCLUDE 'str/members-menu.inc' %]
484
        [% INCLUDE 'str/members-menu.inc' %]
486
        [% Asset.js("js/members-menu.js") | $raw %]
485
        [% 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