diff --git a/app/assets/javascripts/main.js b/app/assets/javascripts/main.js index dadda8596..144b2ba67 100644 --- a/app/assets/javascripts/main.js +++ b/app/assets/javascripts/main.js @@ -9,9 +9,6 @@ if (window.GOVUK.hasConsentFor('analytics', consentData)) { $(() => $("time.timeago").timeago()); -$(() => GOVUK.stickAtTopWhenScrolling.init()); -$(() => GOVUK.stickAtBottomWhenScrolling.init()); - var showHideContent = new GOVUK.ShowHideContent(); showHideContent.init(); diff --git a/app/assets/javascripts/templateFolderForm.js b/app/assets/javascripts/templateFolderForm.js index f2b54d864..9dedb50d5 100644 --- a/app/assets/javascripts/templateFolderForm.js +++ b/app/assets/javascripts/templateFolderForm.js @@ -285,9 +285,6 @@ if (['move-to-existing-folder', 'add-new-template'].indexOf(this.currentState) !== -1) { mode = 'dialog'; } - GOVUK.stickAtBottomWhenScrolling.setMode(mode); - // make sticky JS recalculate its cache of the element's position - GOVUK.stickAtBottomWhenScrolling.recalculate(); if (currentStateObj && ('setFocus' in currentStateObj)) { scrollTop = $(window).scrollTop(); @@ -299,10 +296,12 @@ this.nothingSelectedButtons = $(`
- - +
+ + +