ApiSandbox: Fix upload widget
authorBrad Jorsch <bjorsch@wikimedia.org>
Fri, 26 Jul 2019 15:03:24 +0000 (11:03 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Fri, 26 Jul 2019 15:03:24 +0000 (11:03 -0400)
commit9efb4296f06a5f65c3d8004cc7372ddd74ef48c9
treeb478abb2c91f8bf1c49c9795478d7c9933525851
parent22f137ced85fe4841c71ba6c2b9faf6199b5a539
ApiSandbox: Fix upload widget

Attempting to send the request with an active upload widget was
producing a JavaScript error "TypeError: this.setIcon is not a
function". This was probably broken by Iaaa226ea.

Further, validation was not working correctly since getValue() was
returning undefined rather than null as documented. This was probably
broken by I8d736fbb.

Bug: T229123
Change-Id: I78a6f9f0cffcd229ec0ab80c2309a0ee2089c927
resources/src/mediawiki.special.apisandbox/apisandbox.js