New basic page structure implemented for circ pages: global main menu in the header...
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / js / staff-global.js
1 // staff-global.js
2
3  $(document).ready(function() {
4         $(".focus").focus();
5  });
6  
7  $(document).ready(function() {
8         $('a#showCatSearch').click(function() {
9                 $('#catalog_search').show();
10                 $('#circ_search').hide();
11                 $('#showCircSearch').parents("li").addClass('off').removeClass('on');
12                 $('#showCatSearch').parents("li").addClass('on').removeClass('off');
13                 $('#search-form').val($('#findborrower').val()).focus();
14                 $('#residenttip').html("Enter search keywords:");
15                 return false;
16         });
17         
18         $('a#showCircSearch').click(function() {
19                 $('#circ_search').show();
20                 $('#catalog_search').hide();
21                 $('#showCatSearch').parents("li").addClass('off').removeClass('on');
22                 $('#showCircSearch').parents("li").addClass('on').removeClass('off');
23                 $('#findborrower').val($('#search-form').val()).focus();
24                 $('#residenttip').html("Enter patron card number or partial name:");
25                 return false;
26         });
27 });
28