mw.widgets.DateInputWidget: Implement $overlay config option
authorBartosz Dziewoński <matma.rex@gmail.com>
Wed, 16 Sep 2015 15:22:35 +0000 (17:22 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Tue, 29 Sep 2015 02:37:39 +0000 (04:37 +0200)
commit7133d749c23b32ab72ea7201c24d8a66e9871da8
tree4510073ec4a16ddd89832d74c4512c6d9a13fb61
parentb4b2523f48a2480f2e13a0bbfab55698b9d40769
mw.widgets.DateInputWidget: Implement $overlay config option

Unlike in other widgets with popups, the one here (CalendarWidget) is
focusable. As the text input and calendar are not in DOM order when
using $overlay, we fix up focus transitions between them manually.

Bug: T112676
Change-Id: I504f81f843e8328f609824d44f276296645d5dd1
resources/src/mediawiki.widgets/mw.widgets.CalendarWidget.js
resources/src/mediawiki.widgets/mw.widgets.DateInputWidget.js
resources/src/mediawiki.widgets/mw.widgets.DateInputWidget.less