Refactor NamespaceInputWidget
authorBartosz Dziewoński <matma.rex@gmail.com>
Tue, 11 Aug 2015 15:12:36 +0000 (17:12 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Thu, 20 Aug 2015 15:10:51 +0000 (15:10 +0000)
commitb6046dff660fd5609e5a497b7907fb20004076c8
tree2f1d327a4553ca1ef66f5e160736d49a4c3efe8f
parentedda7119a8a3776eaf669780b73dddae9c89a94e
Refactor NamespaceInputWidget

* Refactor NamespaceInputWidget into two widgets: NamespaceInputWidget
  and ComplexNamespaceInputWidget. The former is now only the dropdown
  (and inherits from DropdownInputWidget), the latter is the dropdown
  plus two checkboxes.
* Change ComplexNamespaceInputWidget configuration to take nested config
  for `invert`, `associated`, and `namespace`, rather than require
  parameters like `invertName` and so on for every combination.
* Implement standalone JavaScript versions of both widgets (previously
  mw.widgets.NamespaceInputWidget could only be created via infusion
  of the PHP widget).

Bug: T99256
Bug: T106138
Bug: T109559
Change-Id: Ie2fee6d035339ceb934fca991675480db3d630d1
autoload.php
includes/htmlform/HTMLSelectNamespace.php
includes/widget/ComplexNamespaceInputWidget.php [new file with mode: 0644]
includes/widget/NamespaceInputWidget.php
resources/Resources.php
resources/src/mediawiki.widgets/mw.widgets.ComplexNamespaceInputWidget.base.css [new file with mode: 0644]
resources/src/mediawiki.widgets/mw.widgets.ComplexNamespaceInputWidget.js [new file with mode: 0644]
resources/src/mediawiki.widgets/mw.widgets.NamespaceInputWidget.base.css [deleted file]
resources/src/mediawiki.widgets/mw.widgets.NamespaceInputWidget.js