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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt (-22 / +10 lines)
Lines 974-1000 Link Here
974
        columns_settings_borrowers_table = [% ColumnsSettings.GetColumns( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %]
974
        columns_settings_borrowers_table = [% ColumnsSettings.GetColumns( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %]
975
975
976
        $(document).ready(function() {
976
        $(document).ready(function() {
977
            [% UNLESS clubs %]
977
            [% SET active = clubs ? 1 : 0 %]
978
                $('#circ_holds_select').tabs({
978
            $('#circ_holds_select').tabs({
979
                    active: 0,
979
                active: [% active %],
980
                    activate: function(){
980
                activate: function(){
981
                        $(this).find("input.focus").focus();
981
                    $(this).find("input.focus").focus();
982
                    },
982
                },
983
                    create: function(){
983
                create: function(){
984
                        $(this).find("input.focus").focus();
984
                    $(this).find("input.focus").focus();
985
                    }
985
                }
986
                });
986
            });
987
            [% ELSE %]
988
                $('#circ_holds_select').tabs({
989
                    active: 1,
990
                    activate: function(){
991
                        $(this).find("input.focus").focus();
992
                    },
993
                    create: function(){
994
                        $(this).find("input.focus").focus();
995
                    }
996
                });
997
            [% END %]
998
            function ToggleHoldsToPlace() {
987
            function ToggleHoldsToPlace() {
999
                if ( $("#requestany").prop('checked') ) {
988
                if ( $("#requestany").prop('checked') ) {
1000
                    $("#holds_to_place_count").prop('disabled', false);
989
                    $("#holds_to_place_count").prop('disabled', false);
1001
- 

Return to bug 24510