diff options
author | Kunal Mehta <legoktm@member.fsf.org> | 2018-04-06 16:02:49 -0700 |
---|---|---|
committer | Kunal Mehta <legoktm@member.fsf.org> | 2018-04-06 16:02:49 -0700 |
commit | 445622563fa96719542cdcf6d781e2a8fe8f4e5e (patch) | |
tree | ed323fffce3a17ce4693c8420745666e52be71d1 /mw-config | |
parent | a7e2b91b2c72f3522a7a9c3c957a43309e70b92e (diff) | |
download | mediawikicore-445622563fa96719542cdcf6d781e2a8fe8f4e5e.tar.gz mediawikicore-445622563fa96719542cdcf6d781e2a8fe8f4e5e.zip |
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
Diffstat (limited to 'mw-config')
-rw-r--r-- | mw-config/config.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mw-config/config.js b/mw-config/config.js index c745ce44a771..acb9664aee1c 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' ); } |