From 257100e921a066c32bb5369dc725b478e6965b90 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sun, 11 Sep 2022 09:09:31 -0400 Subject: [PATCH] Add missing i18n attribute --- src/document-blocked.html | 2 +- src/js/document-blocked.js | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/document-blocked.html b/src/document-blocked.html index 2533ddfda..f7cd9a622 100644 --- a/src/document-blocked.html +++ b/src/document-blocked.html @@ -33,7 +33,7 @@
- +
diff --git a/src/js/document-blocked.js b/src/js/document-blocked.js index a6f9a91fa..469f77a4b 100644 --- a/src/js/document-blocked.js +++ b/src/js/document-blocked.js @@ -223,6 +223,12 @@ const proceedPermanent = async function() { proceedToURL(); }; +uDom('#disableWarning').on('change', ev => { + const checked = ev.target.checked; + document.querySelector('[data-i18n="docblockedBack"]').classList.toggle('disabled', checked); + document.querySelector('[data-i18n="docblockedClose"]').classList.toggle('disabled', checked); +}); + uDom('#proceed').on('click', ( ) => { const input = document.querySelector('#disableWarning'); if ( input.checked ) {