|
Lines 217-222
$.widget.bridge('uitooltip', $.ui.tooltip);
Link Here
|
| 217 |
return confirmDelete(MSG_DELETE_SEARCH_HISTORY); |
217 |
return confirmDelete(MSG_DELETE_SEARCH_HISTORY); |
| 218 |
}); |
218 |
}); |
| 219 |
|
219 |
|
|
|
220 |
$("body").append('<button id="backtotop" class="btn btn-primary"><i class="fa fa-arrow-up"></i></button>'); |
| 221 |
$("#backtotop").hide(); |
| 222 |
$(window).scroll(function(){ |
| 223 |
if ( $(window).scrollTop() < 300 ) { |
| 224 |
$("#backtotop").fadeOut(); |
| 225 |
} else { |
| 226 |
$("#backtotop").fadeIn(); |
| 227 |
} |
| 228 |
}); |
| 229 |
$("#backtotop").click(function(e) { |
| 230 |
e.preventDefault(); |
| 231 |
$("html,body").animate({scrollTop: 0}, "slow"); |
| 232 |
}); |
| 233 |
|
| 220 |
</script> |
234 |
</script> |
| 221 |
|
235 |
|
| 222 |
[% IF Koha.Preference( 'opacbookbag' ) == 1 %] |
236 |
[% IF Koha.Preference( 'opacbookbag' ) == 1 %] |
| 223 |
- |
|
|