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: https://git.cyclocoop.org/%7B%24admin_url%7Dcompta/%7B%7B%20url_for%28%27user_edit%27%2C%20userid=session.user.id%29%20%7D%7D?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 ); } );