X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=mw-config%2Fconfig.js;h=99290f445370724ca480814b8a4fc65a4244a29a;hb=b37772a99128afe1699a60718ebe2a6f8469aa8f;hp=bb62067e2ef9c544bf38d97c106ca735b442183c;hpb=0eb1619898438735b04293b5aef9a36650258741;p=lhc%2Fweb%2Fwiklou.git diff --git a/mw-config/config.js b/mw-config/config.js index bb62067e2e..99290f4453 100644 --- a/mw-config/config.js +++ b/mw-config/config.js @@ -73,7 +73,9 @@ // Hide "other" textboxes by default // Should not be done in CSS for javascript disabled compatibility - $( '.enabledByOther' ).closest( '.config-block' ).hide(); + if ( !$( '#config__NamespaceType_other' ).is( ':checked' ) ) { + $( '.enabledByOther' ).closest( '.config-block' ).hide(); + } // Enable/disable "other" textboxes $( '.enableForOther' ).click( function () {