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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt (-14 / +18 lines)
Lines 978-986 Link Here
978
978
979
        $(document).ready(function() {
979
        $(document).ready(function() {
980
            [% UNLESS clubs %]
980
            [% UNLESS clubs %]
981
                $('#circ_holds_select').tabs({active: 0});
981
                $('#circ_holds_select').tabs({
982
                    active: 0,
983
                    activate: function(){
984
                        $(this).find("input.focus").focus();
985
                    },
986
                    create: function(){
987
                        $(this).find("input.focus").focus();
988
                    }
989
                });
982
            [% ELSE %]
990
            [% ELSE %]
983
                $('#circ_holds_select').tabs({active: 1});
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
                });
984
            [% END %]
1000
            [% END %]
985
            function ToggleHoldsToPlace() {
1001
            function ToggleHoldsToPlace() {
986
                if ( $("#requestany").prop('checked') ) {
1002
                if ( $("#requestany").prop('checked') ) {
Lines 1261-1277 Link Here
1261
                [% END %]
1277
                [% END %]
1262
            [% END %]
1278
            [% END %]
1263
1279
1264
            if ( $(".focus").is(":visible") ) {
1265
                $(".focus").focus();
1266
            }
1267
1268
            $('[href="#holds_patronsearch_pane"]').click( function() {
1269
                $('#patron').focus();
1270
            })
1271
1272
            $('[href="#holds_clubsearch_pane"]').click( function() {
1273
                $('#club').focus();
1274
            })
1275
        });
1280
        });
1276
    </script>
1281
    </script>
1277
[% END %]
1282
[% END %]
1278
- 

Return to bug 24510