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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tt (-22 / +35 lines)
Lines 461-474 Link Here
461
    </script>
461
    </script>
462
    <script>
462
    <script>
463
        // the english words used in display purposes
463
        // the english words used in display purposes
464
        var text = new Array(_("Number"),_("Volume"),_("Issue"),_("Month"),_("Week"),_("Starting with:"),_("Rollover at:"),_("Choose hemisphere:"),_("Northern"),_("Southern",
464
        var text = new Array(
465
        "Autumn"),_("Winter"),_("Spring"),_("Summer"),_("Fall"),_("Season"),_("Year"));
465
            _("Number"),
466
        $(document).ready(function() {
466
            _("Volume"),
467
467
            _("Issue"),
468
            $("#renewsub").click(function(){
468
            _("Month"),
469
            _("Week"),
470
            _("Starting with:"),
471
            _("Rollover at:"),
472
            _("Choose hemisphere:"),
473
            _("Northern"),
474
            _("Southern", "Autumn"),
475
            _("Winter"),
476
            _("Spring"),
477
            _("Summer"),
478
            _("Fall"),
479
            _("Season"),
480
            _("Year")
481
        );
482
        $(document).ready(function () {
483
            $("#renewsub").click(function () {
469
                popup(subscriptionid);
484
                popup(subscriptionid);
470
                return false;
485
                return false;
471
            })
486
            });
472
487
473
            var table = $("#orders").kohaTable(
488
            var table = $("#orders").kohaTable(
474
                {
489
                {
Lines 483-524 Link Here
483
                table_settings
498
                table_settings
484
            );
499
            );
485
500
486
            if (has_orders){
501
            if (has_orders) {
487
                $(table).treetable({
502
                $(table).treetable({
488
                    expandable: true,
503
                    expandable: true,
489
                    initialState: 'expanded',
504
                    initialState: "expanded",
490
                });
505
                });
491
                $(table).treetable('expandAll');
506
                $(table).treetable("expandAll");
492
507
493
                $("#expand_all").click(function(e){
508
                $("#expand_all").click(function (e) {
494
                    e.preventDefault();
509
                    e.preventDefault();
495
                    $(table).treetable('expandAll');
510
                    $(table).treetable("expandAll");
496
                });
511
                });
497
                $("#collapse_all").click(function(e){
512
                $("#collapse_all").click(function (e) {
498
                    e.preventDefault();
513
                    e.preventDefault();
499
                    $(table).treetable('collapseAll');
514
                    $(table).treetable("collapseAll");
500
                });
515
                });
501
            }
516
            }
502
517
503
            let table_dt = table.DataTable();
518
            let table_dt = table.DataTable();
504
            $("#hide_received_orders").click(function(e){
519
            $("#hide_received_orders").click(function (e) {
505
                e.preventDefault();
520
                e.preventDefault();
506
                table_dt.columns(4).search('^$', {regex: true}).draw(); // Not empty "Receive date" columns
521
                table_dt.columns(4).search("^$", { regex: true }).draw(); // Not empty "Receive date" columns
507
            });
522
            });
508
            $("#show_all_orders").click(function(e){
523
            $("#show_all_orders").click(function (e) {
509
                e.preventDefault();
524
                e.preventDefault();
510
                table_dt.columns(4).search('').draw(); // Not filter, display all columns
525
                table_dt.columns(4).search("").draw(); // Not filter, display all columns
511
            });
526
            });
512
            $("#show_all_orders").click();
527
            $("#show_all_orders").click();
513
528
514
            if (print_routing_list_issue){
529
            if (print_routing_list_issue) {
515
                var myurl = `/cgi-bin/koha/serials/routing-preview.pl?op=print&subscriptionid=${subscriptionid}&issue=${print_routing_list_issue}`;
530
                var myurl = `/cgi-bin/koha/serials/routing-preview.pl?op=print&subscriptionid=${subscriptionid}&issue=${print_routing_list_issue}`;
516
                window.open(myurl,'PrintSlip','width=500,height=500,toolbar=no,scrollbars=yes');
531
                window.open(myurl, "PrintSlip", "width=500,height=500,toolbar=no,scrollbars=yes");
517
            }
532
            }
518
519
        });
533
        });
520
534
521
        function mana_comment_close(){
535
        function mana_comment_close() {
522
            $("#selected_id").val("");
536
            $("#selected_id").val("");
523
            $("#mana-resource-id").val("");
537
            $("#mana-resource-id").val("");
524
            $("#mana-comment").val("");
538
            $("#mana-comment").val("");
525
- 

Return to bug 41578