[Koha] JQuery Help to Choose Tab
Nicole Engard
nengard at gmail.com
Wed Jun 4 01:19:11 NZST 2014
On Tue, Jun 3, 2014 at 12:58 AM, Fridolin SOMERS <
fridolin.somers at biblibre.com> wrote:
>
> $(document).ready(function(){
> $("#header_search a[href='#catalog_search']").click();
> });
That works on every page in the staff client, but if I wanted it to work on
the main page only so I edited it like this:
$(document).ready(function(){
if (window.location.href.indexOf("cgi-bin/koha/mainpage.pl") > -1) {
$("#header_search a[href='#catalog_search']").click();
}
});
And it's perfect!!! Thanks Fridolin!
More information about the Koha
mailing list