HTMLSelectAndOtherField/HTMLSelectOrOtherField: Change how ID is handled in OOUI...
authorBartosz Dziewoński <matma.rex@gmail.com>
Mon, 25 Sep 2017 18:49:51 +0000 (20:49 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Mon, 25 Sep 2017 18:50:34 +0000 (20:50 +0200)
commite8a0b0552d41b8adc8629cab60b462fd27376bb3
treea07f44e1873f150a0a443c869f555d6f04a56b64
parentac28d37b293655bc3699555620a17822fd5424b2
HTMLSelectAndOtherField/HTMLSelectOrOtherField: Change how ID is handled in OOUI mode

Set the ID on the main widget (mw.widgets.SelectWithInputWidget), so
that it can be infused by ID.

The dropdown/textbox by themselves can't be infused individually,
therefore IDs on them are pretty useless; remove those where they're
not necessary.

Follow-up to 8bd6605736c47259bd5f901284cbd2e639cef30c.

Change-Id: If54dd48f1000e3e0f5a978428a5b622797b4f765
includes/htmlform/fields/HTMLSelectAndOtherField.php
includes/htmlform/fields/HTMLSelectOrOtherField.php