diff --git a/CHANGES.md b/CHANGES.md index dd6ad00edb557c6cc990429ea89ee0e2b6f76d29..3c5f021e8678df2be14b419b6f183ba5668160a6 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -6,6 +6,7 @@ Changes ### Unreleased +* 2019-05-24 - Prevent back-to-top button from being printed. * 2019-05-03 - Added a setting to be able to add texts to your uploaded background images for the login page. * 2019-05-02 - Added setting to be able to add additional resources to the theme. diff --git a/amd/build/backtotop.min.js b/amd/build/backtotop.min.js index 1d69e9ed7a54c4bde1e77ce1d848a301d0cc5e67..4ee413bf8ea8955d4cf18b333bcba547f44fe261 100644 --- a/amd/build/backtotop.min.js +++ b/amd/build/backtotop.min.js @@ -1 +1 @@ -define(["jquery"],function(a){"use strict";function b(){a("#page-footer").after('<i class="fa fa-chevron-up fa-2x" id="back-to-top"></i>'),a(window).scroll(function(){a(document).scrollTop()>220?a("#back-to-top").fadeIn(300):a("#back-to-top").fadeOut(100)}),a("#back-to-top").click(function(b){b.preventDefault(),a("html, body").animate({scrollTop:0},500)})}return{init:function(){b()}}}); \ No newline at end of file +define(["jquery"],function(a){"use strict";function b(){a("#page-footer").after('<i class="fa fa-chevron-up fa-2x d-print-none" id="back-to-top"></i>'),a(window).scroll(function(){a(document).scrollTop()>220?a("#back-to-top").fadeIn(300):a("#back-to-top").fadeOut(100)}),a("#back-to-top").click(function(b){b.preventDefault(),a("html, body").animate({scrollTop:0},500)})}return{init:function(){b()}}}); \ No newline at end of file diff --git a/amd/src/backtotop.js b/amd/src/backtotop.js index ed4f4161d2b2c5d07f1d408064a9445a672c20f4..478e29aa5f392eeeb93bb36e16925d052f9d1b5f 100644 --- a/amd/src/backtotop.js +++ b/amd/src/backtotop.js @@ -29,7 +29,7 @@ define(['jquery'], function($) { */ function initBackToTop() { // Add a fontawesome icon after the footer as the back to top button. - $('#page-footer').after('<i class="fa fa-chevron-up fa-2x" id="back-to-top"></i>'); + $('#page-footer').after('<i class="fa fa-chevron-up fa-2x d-print-none" id="back-to-top"></i>'); // This function fades the button in when the page is scrolled down or fades it out // if the user is at the top of the page.