Convert EditPage buttons, checkboxes and summary input to OOUI
authorFlorian <florian.schmidt.stargatewissen@gmail.com>
Fri, 14 Aug 2015 18:07:35 +0000 (20:07 +0200)
committerJforrester <jforrester@wikimedia.org>
Wed, 12 Apr 2017 01:35:24 +0000 (01:35 +0000)
commit97d7de0b84ef65094108fbcf62ffcc1c55d75345
treec69728a8570e610d7a1bb555b7201359e3a35901
parent72dee0e141c47fc9c066ab0baab668a751497d17
Convert EditPage buttons, checkboxes and summary input to OOUI

Several methods now have a new implementation using OOjs UI widgets
(ButtonInputWidget/ButtonWidget, CheckboxInputWidget, TextInputWidget).
The existing (public) methods are unchanged. The OOjs UI version is
used by default.

Because this change can cause problems for extensions and on-wiki
scripts depending on the exact HTML, the old version is still available
and can be used by setting $wgOOUIEditPage = false; in LocalSettings.php.
This will be removed later and OOjs UI will become the only option.
To make testing easier, users can also force either mode by adding
&ooui=true or &ooui=false to the action=edit URL.

* EditPage::getSummaryInput() and EditPage::getSummaryInputOOUI()
* EditPage::getCheckboxes() and EditPage::getCheckboxesOOUI()
* EditPage::getCancelLink()
* EditPage::getEditButtons()

Bug: T111088
Co-Authored-By: Amir Sarabadani <ladsgroup@gmail.com>
Co-Authored-By: Florian Schmidt <florian.schmidt.welzow@t-online.de>
Change-Id: I25aa78ac59082789938ecfb5878eb16614392995
RELEASE-NOTES-1.29
includes/DefaultSettings.php
includes/EditPage.php
resources/src/mediawiki.action/mediawiki.action.edit.js
resources/src/mediawiki.action/mediawiki.action.edit.styles.css
resources/src/mediawiki.skinning/interface.css