From 8237785dc4764755b941e3d8507b4e1b478bbd36 Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Wed, 5 Oct 2016 13:47:54 -0400 Subject: [PATCH] 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 --- resources/src/mediawiki.special/mediawiki.special.apisandbox.js | 1 + 1 file changed, 1 insertion(+) 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 ) ) { -- 2.20.1