View | Details | Raw Unified | Return to bug 30136
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc (-1 / +14 lines)
Lines 213-218 Link Here
213
        return confirmDelete(MSG_DELETE_SEARCH_HISTORY);
213
        return confirmDelete(MSG_DELETE_SEARCH_HISTORY);
214
    });
214
    });
215
215
216
    $("body").append('<button id="backtotop" class="btn btn-primary"><i class="fa fa-arrow-up" aria-hidden="true"></i></button>');
217
    $("#backtotop").hide();
218
    $(window).scroll(function(){
219
        if ( $(window).scrollTop() < 300 ) {
220
            $("#backtotop").fadeOut();
221
        } else {
222
            $("#backtotop").fadeIn();
223
        }
224
    });
225
    $("#backtotop").click(function(e) {
226
        e.preventDefault();
227
        $("html,body").animate({scrollTop: 0}, "slow");
228
    });
229
216
</script>
230
</script>
217
231
218
[% IF Koha.Preference( 'opacbookbag' ) == 1 %]
232
[% IF Koha.Preference( 'opacbookbag' ) == 1 %]
219
- 

Return to bug 30136