HTMLForm: Handle Flags in non-OOUI form buttons, too
authorFlorian <florian.schmidt.stargatewissen@gmail.com>
Thu, 9 Jul 2015 17:08:21 +0000 (19:08 +0200)
committerFlorian <florian.schmidt.stargatewissen@gmail.com>
Sat, 11 Jul 2015 14:01:12 +0000 (16:01 +0200)
commite20347614cf0f775be5294005a4806ec027612d2
tree0dc2be6c5f4270235ab50003c58d858082fc6ec4
parenta0f83703cffe05e2044b63274f6ac636cdae247a
HTMLForm: Handle Flags in non-OOUI form buttons, too

Flags added to a button or submit field in a non-OOUI form will be
handled now, too.

With activated wgUseMediaWikiUIEverywhere:
All flags will get the 'mw-ui-' prefix.
(mw-ui-button is added to the button automatically)

With deactivated wgUseMediaWikiUIEverywhere:
All flags will get the 'mw-htmlform-' prefix.

This allows HTMLForm users to add flags to only the button, without
setting them as a cssclas, which would be added to the wrapper elements,
too.

Bug: T102838
Change-Id: I121a966fb4db6649a6e1012187148d354b5534f0
includes/htmlform/HTMLButtonField.php