mw.special.apisandbox: Don't pass $label to OO.ui.FieldLayout
authorBrad Jorsch <bjorsch@wikimedia.org>
Tue, 2 May 2017 16:35:27 +0000 (12:35 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Tue, 2 May 2017 16:35:27 +0000 (12:35 -0400)
commite1946cc212febd0fe546f5d6c8307f79a4ad0a9f
treef48aa7c3d4dfa408d39fe42209e6f847e681c35e
parentfb36b7d94317720379513116c6062a21d23f973e
mw.special.apisandbox: Don't pass $label to OO.ui.FieldLayout

They removed that functionality. Instead, access the FieldLayout's
$label property to attach the click event handler we need. It's not
documented (I think), but seems stable.

Bug: T164149
Change-Id: I30e7ad51dc1a484203138919c19a55f77552f330
resources/src/mediawiki.special/mediawiki.special.apisandbox.js