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 977-1003 Link Here
977
        columns_settings_borrowers_table = [% ColumnsSettings.GetColumns( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %]
977
        columns_settings_borrowers_table = [% ColumnsSettings.GetColumns( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %]
978
978
979
        $(document).ready(function() {
979
        $(document).ready(function() {
980
            [% UNLESS clubs %]
980
            [% SET active = clubs ? 1 : 0 %]
981
                $('#circ_holds_select').tabs({
981
            $('#circ_holds_select').tabs({
982
                    active: 0,
982
                active: [% active %],
983
                    activate: function(){
983
                activate: function(){
984
                        $(this).find("input.focus").focus();
984
                    $(this).find("input.focus").focus();
985
                    },
985
                },
986
                    create: function(){
986
                create: function(){
987
                        $(this).find("input.focus").focus();
987
                    $(this).find("input.focus").focus();
988
                    }
988
                }
989
                });
989
            });
990
            [% ELSE %]
991
                $('#circ_holds_select').tabs({
992
                    active: 1,
993
                    activate: function(){
994
                        $(this).find("input.focus").focus();
995
                    },
996
                    create: function(){
997
                        $(this).find("input.focus").focus();
998
                    }
999
                });
1000
            [% END %]
1001
            function ToggleHoldsToPlace() {
990
            function ToggleHoldsToPlace() {
1002
                if ( $("#requestany").prop('checked') ) {
991
                if ( $("#requestany").prop('checked') ) {
1003
                    $("#holds_to_place_count").prop('disabled', false);
992
                    $("#holds_to_place_count").prop('disabled', false);
1004
- 

Return to bug 24510