From: Louperivois Date: Thu, 8 Jun 2017 20:50:41 +0000 (-0400) Subject: mw.htmlform: Fix hiding of the textbox for 'selectorother' fields on page load X-Git-Tag: 1.31.0-rc.0~2534^2 X-Git-Url: http://git.cyclocoop.org/%28%5B%5E//%22%24curUrl/%22?a=commitdiff_plain;h=6458badeccc65d707b1d16b3673c446e0c0a97af;p=lhc%2Fweb%2Fwiklou.git mw.htmlform: Fix hiding of the textbox for 'selectorother' fields on page load Bug: T166621 Change-Id: I3921651585dd8b382afc99eca18a927eba1ebe47 --- diff --git a/resources/src/mediawiki/htmlform/selectorother.js b/resources/src/mediawiki/htmlform/selectorother.js index 66879e9e14..b6899d95f9 100644 --- a/resources/src/mediawiki/htmlform/selectorother.js +++ b/resources/src/mediawiki/htmlform/selectorother.js @@ -53,6 +53,7 @@ $root .on( 'change', '.mw-htmlform-select-or-other', handleSelectOrOther ) + .find( '.mw-htmlform-select-or-other' ) .each( function () { handleSelectOrOther.call( this, true ); } );