X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=mw-config%2Fconfig.js;h=99290f445370724ca480814b8a4fc65a4244a29a;hb=0441c8194107fb48f056a8732d2f2c64cc0232e5;hp=bb62067e2ef9c544bf38d97c106ca735b442183c;hpb=05eb49e989a8e9ddda4dbfb049b6542933bc2c90;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 () {