1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-04 01:59:38 +02:00

Add missing i18n attribute

This commit is contained in:
Raymond Hill 2022-09-11 09:09:31 -04:00
parent 4044aa182a
commit 257100e921
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
2 changed files with 7 additions and 1 deletions

View File

@ -33,7 +33,7 @@
</div>
<div class="li">
<label><span class="input checkbox"><input type="checkbox" id="disableWarning"><svg viewBox="0 0 24 24"><path d="M1.73,12.91 8.1,19.28 22.79,4.59"/></svg></span><span>Don't warn me again about this site</span></label>
<label><span class="input checkbox"><input type="checkbox" id="disableWarning"><svg viewBox="0 0 24 24"><path d="M1.73,12.91 8.1,19.28 22.79,4.59"/></svg></span><span data-i18n="docblockedDontWarn"></span></label>
</div>
<div id="actionContainer">

View File

@ -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 ) {