User:Notjusttired/timeless.js: Difference between revisions
From MEpedia, a crowd-sourced encyclopedia of ME and CFS science and history
|
|
Line 1: |
Line 1: |
| /* | | /* |
| Disable default license option on Special:Upload (None Selected) to force a choice.
| | Code being tested before use on [[MediaWiki:Timeless.js]] or [[MediaWiki:Common.js]] |
|
| |
|
| */
| |
|
| |
| $(function () {
| |
|
| |
| myElement = document.getElementById("wpLicense");
| |
|
| |
| myElement.options[0].disabled = true;
| |
|
| |
| }());
| |
|
| |
| /* set code to
| |
|
| |
| <option disabled="disabled" style="color: GrayText" value="">YOU MUST SELECT A LICENSE!</option>
| |
|
| |
| selectTag = document.getElementsByTagName("select")[0];
| |
|
| |
|
| |
| */ | | */ |
Revision as of 22:24, September 21, 2022
/*
Code being tested before use on [[MediaWiki:Timeless.js]] or [[MediaWiki:Common.js]]
*/