|
Lines 15-20
function _(s) { return s; } // dummy function for gettext
Link Here
|
| 15 |
$(".focus").focus(); |
15 |
$(".focus").focus(); |
| 16 |
$(".validated").validate(); |
16 |
$(".validated").validate(); |
| 17 |
|
17 |
|
|
|
18 |
$("#logout").on("click",function(){ |
| 19 |
logOut(); |
| 20 |
}); |
| 21 |
$("#helper").on("click",function(){ |
| 22 |
openHelp(); |
| 23 |
return false; |
| 24 |
}); |
| 25 |
|
| 18 |
$('.noEnterSubmit').keypress(function(e){ |
26 |
$('.noEnterSubmit').keypress(function(e){ |
| 19 |
if ( e.which == 13 ) return false; |
27 |
if ( e.which == 13 ) return false; |
| 20 |
}); |
28 |
}); |
|
Lines 42-47
function clearHoldFor(){
Link Here
|
| 42 |
$.cookie("holdfor",null, { path: "/", expires: 0 }); |
50 |
$.cookie("holdfor",null, { path: "/", expires: 0 }); |
| 43 |
} |
51 |
} |
| 44 |
|
52 |
|
|
|
53 |
function logOut(){ |
| 54 |
if( typeof delBasket == 'function' ){ |
| 55 |
delBasket('main', true); |
| 56 |
} |
| 57 |
clearHoldFor(); |
| 58 |
} |
| 59 |
|
| 60 |
function openHelp(){ |
| 61 |
openWindow("/cgi-bin/koha/help.pl","Koha help",600,600); |
| 62 |
} |
| 63 |
|
| 45 |
jQuery.fn.preventDoubleFormSubmit = function() { |
64 |
jQuery.fn.preventDoubleFormSubmit = function() { |
| 46 |
jQuery(this).submit(function() { |
65 |
jQuery(this).submit(function() { |
| 47 |
$("body, form input[type='submit'], form button[type='submit'], form a").addClass('waiting'); |
66 |
$("body, form input[type='submit'], form button[type='submit'], form a").addClass('waiting'); |
| 48 |
- |
|
|