diff --git a/src/Foundation.hs b/src/Foundation.hs index 5360390d9..22af31b8f 100644 --- a/src/Foundation.hs +++ b/src/Foundation.hs @@ -1070,9 +1070,6 @@ siteLayout' headingOverride widget = do addScript $ StaticR js_services_i18n_js -- addScript $ StaticR js_utils_alerts_js -- addScript $ StaticR js_utils_asidenav_js - -- addScript $ StaticR js_utils_asyncForm_js - -- addScript $ StaticR js_utils_asyncTableFilter_js - -- addScript $ StaticR js_utils_httpClient_js -- JavaScript utils addScript $ StaticR js_utils_asyncTable_js addScript $ StaticR js_utils_checkAll_js diff --git a/src/Utils/Modal.hs b/src/Utils/Modal.hs index 5dd4ccd3e..d62b64607 100644 --- a/src/Utils/Modal.hs +++ b/src/Utils/Modal.hs @@ -23,7 +23,6 @@ data Modal site = Modal customModal :: Modal site -> WidgetT site IO () customModal Modal{..} = do let isDynamic = is _Left modalContent - modalId' <- maybe newIdent return modalId triggerId' <- maybe newIdent return modalTriggerId $(widgetFile "widgets/modal/modal") diff --git a/static/js/utils/checkAll.js b/static/js/utils/checkAll.js index 894f5fe0d..fcf3f67c3 100644 --- a/static/js/utils/checkAll.js +++ b/static/js/utils/checkAll.js @@ -10,7 +10,7 @@ * (will be set up automatically on tables) * * Example usage: - * (table with one column thats only checkboxes) + * (table with one column thats only checkboxes) */ var CHECK_ALL_UTIL_NAME = 'checkAll'; diff --git a/templates/widgets/modal/modal.julius b/templates/widgets/modal/modal.julius deleted file mode 100644 index 9d4ccf539..000000000 --- a/templates/widgets/modal/modal.julius +++ /dev/null @@ -1,6 +0,0 @@ -document.addEventListener('DOMContentLoaded', function() { - var modal = document.querySelector('#modal-' + #{String modalId'}); - if (modal) { - window.utils.setup('modal', modal); - } -}); diff --git a/templates/widgets/navbar/navbar.julius b/templates/widgets/navbar/navbar.julius deleted file mode 100644 index 13dbe009a..000000000 --- a/templates/widgets/navbar/navbar.julius +++ /dev/null @@ -1,31 +0,0 @@ -(function () { - 'use strict'; - - window.utils = window.utils || {}; - - window.utils.stickynav = function (nav) { - var ticking = false; - - init(); - function init() { - window.addEventListener('scroll', function (e) { - if (!ticking) { - window.requestAnimationFrame(update); - ticking = true; - } - }, false); - update(); - } - - function update() { - var sticky = window.scrollY > 30; - nav.classList.toggle('navbar--sticky', sticky); - ticking = false; - } - } - -})(); - -document.addEventListener('setup', function (e) { - // utils.stickynav(e.detail.scope.querySelector('.js-sticky-navbar')); -}); diff --git a/templates/widgets/pageaction/pageaction.julius b/templates/widgets/pageaction/pageaction.julius deleted file mode 100644 index e69de29bb..000000000