From 86b250d50136f5454c6994630b8a50fdb0705872 Mon Sep 17 00:00:00 2001
From: Kathrin Osswald <kathrin.osswald@uni-ulm.de>
Date: Fri, 3 May 2019 11:52:45 +0200
Subject: [PATCH] Prevent back-to-top button from being printed.

---
 CHANGES.md                 | 1 +
 amd/build/backtotop.min.js | 2 +-
 amd/src/backtotop.js       | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/CHANGES.md b/CHANGES.md
index dd6ad00..3c5f021 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 1d69e9e..4ee413b 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 ed4f416..478e29a 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.
-- 
GitLab