ApiSandbox: Ungrey the field label before disabling field label greying
authorBrad Jorsch <bjorsch@wikimedia.org>
Wed, 5 Oct 2016 17:47:54 +0000 (13:47 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Wed, 5 Oct 2016 17:50:00 +0000 (13:50 -0400)
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

index 9c6afed..3959900 100644 (file)
                                                // 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 ) ) {