Fix for Bug 1735, hopefully. jquery selector wasn't targeting the right combination.
authorOwen Leonard <oleonard@myacpl.org>
Mon, 25 Feb 2008 21:34:26 +0000 (10:34 +1300)
committerJoshua Ferraro <jmf@liblime.com>
Wed, 27 Feb 2008 15:02:31 +0000 (09:02 -0600)
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js

index a754500..ae02212 100644 (file)
@@ -6,7 +6,7 @@ function _(s) { return s } // dummy function for gettext
        $(".focus").focus();
        $('#header_search').tabs({
                onShow: function() {
-               $('#header_search').find('div:visible').find('input').eq(0).focus();
+               $('#header_search').find('div.residentsearch').not('.tabs-hide').find('input').eq(0).focus();
            }   
        });
        $(".close").click(function(){