Wiktionary:Beer parlour: difference between revisions

Jump to navigation Jump to search
Content deleted Content added
→‎blocked users' editing their own talkpages: fixing msh210's js: use comparative ==, fix invalid assignment
Line 2,830: Line 2,830:
That's partially my fault, see [[meta:Requests for comment/Blocked users and talkpage access]]. IMO, we can always write some javascript to have the checkbox always automatically checked to restore the default. [[User:TeleComNasSprVen|TeleComNasSprVen]] 08:08, 6 May 2011 (UTC)
That's partially my fault, see [[meta:Requests for comment/Blocked users and talkpage access]]. IMO, we can always write some javascript to have the checkbox always automatically checked to restore the default. [[User:TeleComNasSprVen|TeleComNasSprVen]] 08:08, 6 May 2011 (UTC)
:Sounds good to me. AFAICT that would require adding the following code to Common.js:
:Sounds good to me. AFAICT that would require adding the following code to Common.js:
<source lang="javascript">if (wgCanonicalSpecialPageName='Blockip' && document.getElementById('wpAllowUsertalk')) {
<source lang="javascript">if (wgCanonicalSpecialPageName=='Blockip' && document.getElementById('wpAllowUsertalk') && !document.getElementById('wpAllowUsertalk').disabled) {
(document.getElementById('wpAllowUsertalk').disabled) || document.getElementById('wpAllowUsertalk').checked=false};</source>
document.getElementById('wpAllowUsertalk').checked=false};</source>
:Those who actually know JS are encouraged to review that code, though.<span class="Unicode">&#x200b;—[[User:Msh210|msh210]]℠</span> ([[user talk:Msh210|talk]]) 16:50, 6 May 2011 (UTC)
:Those who actually know JS are encouraged to review that code, though.<span class="Unicode">&#x200b;—[[User:Msh210|msh210]]℠</span> ([[user talk:Msh210|talk]]) 16:50, 6 May 2011 (UTC)