TitleInputWidget: Add 'relative' option
authorKunal Mehta <legoktm@gmail.com>
Sat, 4 Jul 2015 07:39:41 +0000 (00:39 -0700)
committerKunal Mehta <legoktm@gmail.com>
Mon, 6 Jul 2015 06:40:18 +0000 (23:40 -0700)
commitddca1c657e21bd49c01ead2e5e0fbcdb9ee26255
treeab220acf5a304893ffe5208770e9480b521a8aa7
parent0407248483441b55b1cf7e5b1db472b9ee7fbb6e
TitleInputWidget: Add 'relative' option

Currently the JavaScript widget will return a value that is relative to
the namespace, so for "Category:Foo", it will return "Foo". This is
problematic for server-side forms that want a full title returned, so
make this configurable.

Change-Id: I605df2ca41831cae1c8f0a3331600d4487e7798f
includes/widget/TitleInputWidget.php
resources/src/mediawiki.widgets/mw.widgets.TitleInputWidget.js