From 445622563fa96719542cdcf6d781e2a8fe8f4e5e Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Fri, 6 Apr 2018 16:02:49 -0700 Subject: [PATCH] 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 --- mw-config/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' ); } -- 2.20.1