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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt (-1 / +9 lines)
Lines 1376-1381 Link Here
1376
        }
1376
        }
1377
1377
1378
        $(document).ready(function(){
1378
        $(document).ready(function(){
1379
1380
            var activeTab = Cookies.get("sql_reports_activetab");
1381
1379
            $("body").on('click',".fetch_chart_data",function(){
1382
            $("body").on('click',".fetch_chart_data",function(){
1380
                if( [% unlimited_total || 0 | $raw %] > 1000 ){
1383
                if( [% unlimited_total || 0 | $raw %] > 1000 ){
1381
                    if( confirm("Fetching full chart data for reports with many rows can cause performance issues. Are you sure you with to chart this report?") ){
1384
                    if( confirm("Fetching full chart data for reports with many rows can cause performance issues. Are you sure you with to chart this report?") ){
Lines 1564-1570 Link Here
1564
                }, columns_settings);
1567
                }, columns_settings);
1565
1568
1566
                var rtabs = $("#tabs").tabs();
1569
                var rtabs = $("#tabs").tabs();
1570
                if( activeTab ){
1571
                    $("#tabs").tabs("option","active", activeTab );
1572
                }
1567
                rtabs.on("tabsactivate", function(e, ui) {
1573
                rtabs.on("tabsactivate", function(e, ui) {
1574
                    var activeTab = ui.newTab.index();
1575
                    Cookies.set("sql_reports_activetab", activeTab );
1576
1568
                    $("#subgroup_filter option").each(function() {
1577
                    $("#subgroup_filter option").each(function() {
1569
                        if($(this).val().length > 0) {
1578
                        if($(this).val().length > 0) {
1570
                            $(this).remove();
1579
                            $(this).remove();
1571
- 

Return to bug 24958