From: Kunal Mehta Date: Fri, 6 Apr 2018 23:02:49 +0000 (-0700) Subject: installer: Fix setting a custom $wgMetaNamespace X-Git-Tag: 1.31.0-rc.0~164^2 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=445622563fa96719542cdcf6d781e2a8fe8f4e5e;hp=a7e2b91b2c72f3522a7a9c3c957a43309e70b92e installer: Fix setting a custom $wgMetaNamespace `$textbox.removeProp('readonly')` has no effect and leaves the input still as readonly, so instead use `$textbox.prop( 'readonly', false )`, which does work. Bug: T188415 Change-Id: I898c5605caf383cc992a948f14294193460f761b --- diff --git a/mw-config/config.js b/mw-config/config.js index c745ce44a7..acb9664aee 100644 --- a/mw-config/config.js +++ b/mw-config/config.js @@ -79,7 +79,7 @@ var $textbox = $( document.getElementById( $( this ).attr( 'rel' ) ) ); // FIXME: Ugh, this is ugly if ( $( this ).val() === 'other' ) { - $textbox.removeProp( 'readonly' ).closest( '.config-block' ).slideDown( 'fast' ); + $textbox.prop( 'readonly', false ).closest( '.config-block' ).slideDown( 'fast' ); } else { $textbox.prop( 'readonly', true ).closest( '.config-block' ).slideUp( 'fast' ); }