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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt (-2 / +13 lines)
Lines 1006-1015 Link Here
1006
                                            [% END %]
1006
                                            [% END %]
1007
                                        </ul> <!-- /.dropdown-menu -->
1007
                                        </ul> <!-- /.dropdown-menu -->
1008
                                    </div> <!-- /.dropdown -->
1008
                                    </div> <!-- /.dropdown -->
1009
                                    <a href="#" id="toggle_auto_links">
1009
                                    <a href="#" class="btn btn-link" id="toggle_auto_links">
1010
                                        <i class="fa fa-eye autolink" style="display:none"></i>
1010
                                        <i class="fa fa-eye autolink" style="display:none"></i>
1011
                                        <i class="fa fa-eye-slash autolink"></i>
1011
                                        <i class="fa fa-eye-slash autolink"></i>
1012
                                        Toggle data menus
1012
                                        <span class="autolink" style="display:none">Show data menus</span>
1013
                                        <span class="autolink">Hide data menus</span>
1013
                                    </a>
1014
                                    </a>
1014
                                </p>
1015
                                </p>
1015
                            [% END # /IF ( batch_biblionumbers || batch_itemnumbers || batch_cardnumbers ) %]
1016
                            [% END # /IF ( batch_biblionumbers || batch_itemnumbers || batch_cardnumbers ) %]
Lines 1903-1910 Link Here
1903
            }
1904
            }
1904
            $("#toggle_auto_links").on("click", function(e){
1905
            $("#toggle_auto_links").on("click", function(e){
1905
                e.preventDefault();
1906
                e.preventDefault();
1907
                if( $(".data-plain").is(":visible") ){
1908
                    /* if a data-plain element is visible, this click hides it and shows auto-links */
1909
                    localStorage.removeItem("reports_auto_link_off");
1910
                } else {
1911
                    /* if a data-plain element is hidden, this click shows it  and hides auto-links */
1912
                    localStorage.setItem("reports_auto_link_off", 1);
1913
                }
1906
                $(".data-plain,.autolink").toggle();
1914
                $(".data-plain,.autolink").toggle();
1907
            });
1915
            });
1916
            if ( localStorage.getItem("reports_auto_link_off") == 1 ){
1917
                $("#toggle_auto_links").click();
1918
            }
1908
        });
1919
        });
1909
1920
1910
        function tabsInit( ui, rtable ){
1921
        function tabsInit( ui, rtable ){
(-)a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js (-1 / +1 lines)
Lines 198-203 function logOut(){ Link Here
198
    clearHoldFor();
198
    clearHoldFor();
199
    removeLastBorrower();
199
    removeLastBorrower();
200
    localStorage.removeItem("sql_reports_activetab");
200
    localStorage.removeItem("sql_reports_activetab");
201
    localStorage.removeItem("reports_auto_link_off");
201
    localStorage.removeItem("searches");
202
    localStorage.removeItem("searches");
202
}
203
}
203
204
204
- 

Return to bug 5697