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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt (-7 / +13 lines)
Lines 1983-1988 Link Here
1983
        $(document).ready(function(){
1983
        $(document).ready(function(){
1984
1984
1985
            var activeTab = localStorage.getItem("sql_reports_activetab");
1985
            var activeTab = localStorage.getItem("sql_reports_activetab");
1986
            if( activeTab == 0 ){
1987
                $("#subgroup_filter_block").hide();
1988
            }
1986
1989
1987
            $("body").on('click',".fetch_chart_data",function(){
1990
            $("body").on('click',".fetch_chart_data",function(){
1988
                if( [% unlimited_total || 0 | $raw %] > 1000 ){
1991
                if( [% unlimited_total || 0 | $raw %] > 1000 ){
Lines 2491-2503 Link Here
2491
2494
2492
            if (g_id && g_id.length > 0) {
2495
            if (g_id && g_id.length > 0) {
2493
                col4.search(g_id, {exact:true}).visible(false);
2496
                col4.search(g_id, {exact:true}).visible(false);
2494
                for(var i in group_subgroups[g_id]) {
2497
                if( group_subgroups[g_id] && group_subgroups[g_id].length > 0 ){
2495
                    $("#subgroup_filter").append(
2498
                    for(var i in group_subgroups[g_id]) {
2496
                        '<option value="' + group_subgroups[g_id][i][0] + '">'
2499
                        $("#subgroup_filter").append(
2497
                        + group_subgroups[g_id][i][1] + '</option>'
2500
                            '<option value="' + group_subgroups[g_id][i][0] + '">'
2498
                    );
2501
                            + group_subgroups[g_id][i][1] + '</option>'
2502
                        );
2503
                    }
2504
                    $("#subgroup_filter_block").show();
2505
                } else {
2506
                    $("#subgroup_filter_block").hide();
2499
                }
2507
                }
2500
                $("#subgroup_filter_block").show();
2501
            } else {
2508
            } else {
2502
                $("#subgroup_filter_block").hide();
2509
                $("#subgroup_filter_block").hide();
2503
            }
2510
            }
2504
- 

Return to bug 39534