|
Lines 11-16
function _(s) { return s; } // dummy function for gettext
Link Here
|
| 11 |
if($("#header_search #catalog_search").length > 0){ $(document).bind('keydown','Alt+q',function (){ $("#header_search").tabs("select","#catalog_search"); $("#search-form").focus(); }); } else { $(document).bind('keydown','Alt+q',function(){ location.href="/cgi-bin/koha/catalogue/search.pl"; }); } |
11 |
if($("#header_search #catalog_search").length > 0){ $(document).bind('keydown','Alt+q',function (){ $("#header_search").tabs("select","#catalog_search"); $("#search-form").focus(); }); } else { $(document).bind('keydown','Alt+q',function(){ location.href="/cgi-bin/koha/catalogue/search.pl"; }); } |
| 12 |
$(".focus").focus(); |
12 |
$(".focus").focus(); |
| 13 |
$(".validated").validate(); |
13 |
$(".validated").validate(); |
|
|
14 |
$("#logout").on("click",function(){ |
| 15 |
logOut(); |
| 16 |
}); |
| 17 |
$("#helper").on("click",function(){ |
| 18 |
openHelp(); |
| 19 |
return false; |
| 20 |
}); |
| 14 |
}); |
21 |
}); |
| 15 |
|
22 |
|
| 16 |
|
23 |
|
|
Lines 37-42
function clearHoldFor(){
Link Here
|
| 37 |
$.cookie("holdfor",null, { path: "/", expires: 0 }); |
44 |
$.cookie("holdfor",null, { path: "/", expires: 0 }); |
| 38 |
} |
45 |
} |
| 39 |
|
46 |
|
|
|
47 |
function logOut(){ |
| 48 |
if( typeof delBasket == 'function' ){ |
| 49 |
delBasket('main', true); |
| 50 |
} |
| 51 |
clearHoldFor(); |
| 52 |
} |
| 53 |
|
| 54 |
function openHelp(){ |
| 55 |
openWindow("/cgi-bin/koha/help.pl","Koha help",600,600); |
| 56 |
} |
| 57 |
|
| 40 |
jQuery.fn.preventDoubleFormSubmit = function() { |
58 |
jQuery.fn.preventDoubleFormSubmit = function() { |
| 41 |
jQuery(this).submit(function() { |
59 |
jQuery(this).submit(function() { |
| 42 |
$("body, form input[type='submit'], form button[type='submit'], form a").addClass('waiting'); |
60 |
$("body, form input[type='submit'], form button[type='submit'], form a").addClass('waiting'); |
| 43 |
- |
|
|