|
|
Ligne 279 : |
Ligne 279 : |
| </table> | | </table> |
| </div> | | </div> |
|
| |
|
| |
| <div class="d-flex justify-content-center align-items-center">
| |
| <button type='button' class="btn btn-link text-primary small hide" id="oldlogin">Ancien Login</button>
| |
| </div>
| |
|
| |
| <script>
| |
| document.addEventListener('DOMContentLoaded', function() {
| |
| const oldLoginButton = document.getElementById('oldlogin');
| |
|
| |
| // Supprime tous les anciens gestionnaires d'événements du bouton
| |
| const newButton = oldLoginButton.cloneNode(true);
| |
| oldLoginButton.parentNode.replaceChild(newButton, oldLoginButton);
| |
|
| |
| // Ajoute le nouveau gestionnaire d'événement
| |
| newButton.addEventListener('click', function() {
| |
| const elements = document.querySelectorAll(
| |
| '.mw-htmlform-field-HTMLTextField, .mw-htmlform-field-HTMLCheckField, .mw-htmlform-field-HTMLSubmitField, .mw-form-related-link-container'
| |
| );
| |
| elements.forEach(function(element) {
| |
| element.style.display = 'block';
| |
| });
| |
| });
| |
| });
| |
| </script>
| |