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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-basket.tt (-20 / +14 lines)
Lines 324-330 Link Here
324
[% INCLUDE 'opac-bottom.inc' %]
324
[% INCLUDE 'opac-bottom.inc' %]
325
325
326
[% BLOCK jsinclude %]
326
[% BLOCK jsinclude %]
327
    [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
328
    [% Asset.js("lib/hc-sticky.js") | $raw %]
327
    [% Asset.js("lib/hc-sticky.js") | $raw %]
329
        [% INCLUDE 'datatables.inc' %]
328
        [% INCLUDE 'datatables.inc' %]
330
        <script>
329
        <script>
Lines 430-455 Link Here
430
                    tagCanceled();
429
                    tagCanceled();
431
                });
430
                });
432
431
433
                $("#CheckAll").click(function(){
432
                $("#CheckAll").click(function(e){
434
                    var checked = [];
433
                    e.preventDefault();
435
                    $(".checkboxed").checkCheckboxes("*", true).each(
434
                    $(".cb").each(function(){
436
                        function() {
435
                        $(this).prop("checked", true);
437
                            selRecord(this.value,true);
436
                        selRecord(this.value, true);
438
                        }
437
                    });
439
                    );
440
                    enableCheckboxActions();
438
                    enableCheckboxActions();
441
                    return false;
442
                });
439
                });
443
440
444
                $("#CheckNone").click(function(){
441
                $("#CheckNone").click(function(e){
445
                    var checked = [];
442
                    e.preventDefault();
446
                    $(".checkboxed").unCheckCheckboxes("*",true).each(
443
                    $(".cb").each(function(){
447
                        function() {
444
                        $(this).prop("checked", false);
448
                            selRecord(this.value,false);
445
                        selRecord(this.value, false);
449
                        }
446
                    });
450
                    );
451
                    enableCheckboxActions();
447
                    enableCheckboxActions();
452
                    return false;
453
                });
448
                });
454
449
455
                if( $("#itemst").length > 0 ){
450
                if( $("#itemst").length > 0 ){
Lines 490-497 Link Here
490
485
491
            function enableCheckboxActions(){
486
            function enableCheckboxActions(){
492
                // Enable/disable controls if checkboxes are checked
487
                // Enable/disable controls if checkboxes are checked
493
                var checkedBoxes = $(".checkboxed input:checkbox:checked");
488
                var checkedBoxes = $(".cb:checked");
494
                if ($(checkedBoxes).size()) {
489
                if ( checkedBoxes.length ) {
495
                  $("#selections").html(_("With selected titles: "));
490
                  $("#selections").html(_("With selected titles: "));
496
                  $("#selections-toolbar .links a").removeClass("disabled");
491
                  $("#selections-toolbar .links a").removeClass("disabled");
497
                } else {
492
                } else {
498
- 

Return to bug 26008