From: Brad Jorsch Date: Wed, 5 Oct 2016 17:47:54 +0000 (-0400) Subject: ApiSandbox: Ungrey the field label before disabling field label greying X-Git-Tag: 1.31.0-rc.0~5203 X-Git-Url: http://git.cyclocoop.org//%27http:/jquery.khurshid.com/ifixpng.php/%27?a=commitdiff_plain;h=8237785dc4764755b941e3d8507b4e1b478bbd36;p=lhc%2Fweb%2Fwiklou.git ApiSandbox: Ungrey the field label before disabling field label greying It appears that 5c8f9d8a4ce changed something to start greying out the FieldLayout label, which is what we're specifically trying to avoid here. Bug: T147485 Change-Id: I3c3a3b0ea2176c94a247b8c0d4f99d1f090cb239 --- diff --git a/resources/src/mediawiki.special/mediawiki.special.apisandbox.js b/resources/src/mediawiki.special/mediawiki.special.apisandbox.js index 9c6afed5a9..3959900290 100644 --- a/resources/src/mediawiki.special/mediawiki.special.apisandbox.js +++ b/resources/src/mediawiki.special/mediawiki.special.apisandbox.js @@ -1419,6 +1419,7 @@ // Don't grey out the label when the field is disabled, // it makes it too hard to read and our "disabled" // isn't really disabled. + widgetField.onFieldDisable( false ); widgetField.onFieldDisable = doNothing; if ( Util.apiBool( pi.parameters[ i ].deprecated ) ) {