From fd15202d6b1372167a60a50e2aa6db21f536cc01 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Thu, 11 May 2023 12:07:54 -0300 Subject: [PATCH] Bug 8179: Remove commented code Signed-off-by: Tomas Cohen Arazi Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi --- acqui/orderreceive.pl | 1 - .../prog/en/modules/acqui/orderreceive.tt | 25 ------------------- 2 files changed, 26 deletions(-) diff --git a/acqui/orderreceive.pl b/acqui/orderreceive.pl index e0b6096797..a32d7be756 100644 --- a/acqui/orderreceive.pl +++ b/acqui/orderreceive.pl @@ -195,7 +195,6 @@ foreach my $budget (@{$budgets}) { b_sort1_authcat => $budget->{'sort1_authcat'}, b_sort2_authcat => $budget->{'sort2_authcat'}, b_active => $budget->{budget_period_active}, - # b_sel => ( $budget->{budget_id} == $order->budget_id ) ? 1 : 0, b_level => $budget->{budget_level}, }; } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt index 1796de3014..1340f59475 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt @@ -1112,19 +1112,9 @@ if(row.subscription_id) { $('#modal-order-main #items-panel').removeClass('show').addClass('hide'); $('#modal-order-main #history-panel').removeClass('hide').addClass('show'); - /*$('#modal-order-main').tabs("disable", "#items-panel"); - $('#modal-order-main').tabs("enable", "#history-panel"); - if($('#modal-order-main').tabs( "option", "active" ) == 3) { - $('#modal-order-main').tabs( "option", "active", 0); - }*/ } else { $('#modal-order-main #history-panel').removeClass('show').addClass('hide'); $('#modal-order-main #items-panel').removeClass('hide').addClass('show'); - /*$('#modal-order-main').tabs("enable", "#items-panel"); - $('#modal-order-main').tabs("disable", "#history-panel"); - if($('#modal-order-main').tabs( "option", "active" ) == 2) { - $('#modal-order-main').tabs( "option", "active", 0); - }*/ if(effective_create_items == 'receiving') { $("#acq-create-receiving").show(); $("#acq-create-ordering").hide(); @@ -1161,12 +1151,6 @@ } } else { $('#modal-order-main #items-panel').removeClass('show').addClass('hide'); - /* - if($('#modal-order-main').tabs( "option", "active" ) == 3) { - $('#modal-order-main').tabs( "option", "active", 0); - } - $('#modal-order-main').tabs("disable", "#items-panel"); - */ } } $("#select_currency").hide(); @@ -1226,15 +1210,6 @@ $("#order_edit").modal('hide'); }) - /*$('#modal-order-main').tabs({ - activate: function(event, ui) { - var active = ui.newPanel.attr('id') - if(active == 'history-panel') { - show_subs($("#order_edit").data('row')); - } - } - });*/ - $("#order_edit").on("show.bs.modal", function (event) { var anchor = $(event.relatedTarget); var n = anchor.data("row"); -- 2.39.5