X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=mw-config%2Fconfig.js;h=99290f445370724ca480814b8a4fc65a4244a29a;hp=bb62067e2ef9c544bf38d97c106ca735b442183c;hb=0e6f6b592df4e513648fb1114f80e6b10387b7cf;hpb=c29357e7e81b631668c8bd3ccd4b805701380c63 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 () {