From c3014a6de53833cc7019383ce53615aa3fadde69 Mon Sep 17 00:00:00 2001 From: David Watson <14983002+watson8@users.noreply.github.com> Date: Tue, 29 Oct 2024 12:12:48 +0000 Subject: [PATCH] CTP-3973 remove loadingoverlay --- actions/allocate.php | 2 -- loadingoverlay.min.js | 8 -------- module.js | 8 -------- 3 files changed, 18 deletions(-) delete mode 100644 loadingoverlay.min.js diff --git a/actions/allocate.php b/actions/allocate.php index d8eefa3e..5246b8b3 100644 --- a/actions/allocate.php +++ b/actions/allocate.php @@ -91,8 +91,6 @@ $PAGE->requires->jquery(); -$PAGE->requires->js('/mod/coursework/loadingoverlay.min.js'); - // Will set off the function that adds listeners for onclick/onchange etc. $jsmodule = [ 'name' => 'mod_coursework', diff --git a/loadingoverlay.min.js b/loadingoverlay.min.js deleted file mode 100644 index 407a65e9..00000000 --- a/loadingoverlay.min.js +++ /dev/null @@ -1,8 +0,0 @@ -/*************************************************************************************************** -LoadingOverlay - A flexible loading overlay jQuery plugin - Author : Gaspare Sganga - Version : 1.5.4 - License : MIT - Documentation : https://gasparesganga.com/labs/jquery-loading-overlay/ -****************************************************************************************************/ -!function(A,B){function C(C,g){var E=(C=A(C)).is("body"),I=C.data("LoadingOverlayCount");if(I===B&&(I=0),0===I){var o=A("
",{class:"loadingoverlay",css:{"background-color":g.color,position:"relative",display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"}});if(g.zIndex!==B&&o.css("z-index",g.zIndex),g.image&&o.css({"background-image":"url("+g.image+")","background-position":g.imagePosition,"background-repeat":"no-repeat"}),g.fontawesome&&A("
",{class:"loadingoverlay_fontawesome "+g.fontawesome}).appendTo(o),g.custom&&A(g.custom).appendTo(o),E?o.css({position:"fixed",top:0,left:0,width:"100%",height:"100%"}):o.css("position","fixed"===C.css("position")?"fixed":"absolute"),Q(C,o,g,E),g.resizeInterval>0){var w=setInterval(function(){Q(C,o,g,E)},g.resizeInterval);C.data("LoadingOverlayResizeIntervalId",w)}g.fade?!0===g.fade?g.fade=[400,200]:"string"!=typeof g.fade&&"number"!=typeof g.fade||(g.fade=[g.fade,g.fade]):g.fade=[0,0],C.data({LoadingOverlay:o,LoadingOverlayFadeOutDuration:g.fade[1]}),o.hide().appendTo("body").fadeIn(g.fade[0])}I++,C.data("LoadingOverlayCount",I)}function g(C,g){var Q=(C=A(C)).data("LoadingOverlayCount");if(Q!==B)if(Q--,g||Q<=0){var E=C.data("LoadingOverlayResizeIntervalId");E&&clearInterval(E),C.data("LoadingOverlay").fadeOut(C.data("LoadingOverlayFadeOutDuration"),function(){A(this).remove()}),C.removeData(["LoadingOverlay","LoadingOverlayCount","LoadingOverlayFadeOutDuration","LoadingOverlayResizeIntervalId"])}else C.data("LoadingOverlayCount",Q)}function Q(B,C,g,Q){if(!Q){var E="fixed"===B.css("position")?B.position():B.offset();C.css({top:E.top+parseInt(B.css("border-top-width"),10),left:E.left+parseInt(B.css("border-left-width"),10),width:B.innerWidth(),height:B.innerHeight()})}var I=Q?A(window):B,o="auto";g.size&&"auto"!=g.size&&(o=Math.min(I.innerWidth(),I.innerHeight())*parseFloat(g.size)/100,g.maxSize&&o>parseInt(g.maxSize,10)&&(o=parseInt(g.maxSize,10)+"px"),g.minSize&&o