mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-02 00:42:45 +01:00
Add missing i18n attribute
This commit is contained in:
parent
4044aa182a
commit
257100e921
@ -33,7 +33,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="li">
|
<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>
|
||||||
|
|
||||||
<div id="actionContainer">
|
<div id="actionContainer">
|
||||||
|
@ -223,6 +223,12 @@ const proceedPermanent = async function() {
|
|||||||
proceedToURL();
|
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', ( ) => {
|
uDom('#proceed').on('click', ( ) => {
|
||||||
const input = document.querySelector('#disableWarning');
|
const input = document.querySelector('#disableWarning');
|
||||||
if ( input.checked ) {
|
if ( input.checked ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user