Sn1per has uploaded a new change for review.
https://gerrit.wikimedia.org/r/319073
Change subject: Remove type=date/month support from TextInputWidget
......................................................................
Remove type=date/month support from TextInputWidget
This should be handled by DateInputWidget now.
(see I8f80e27304a916bba16ed255c8e78073f9da3813)
Change-Id: Ibf9988461015fb6468e62bfedfa59989dc225018
---
M php/widgets/TextInputWidget.php
M src/widgets/TextInputWidget.js
2 files changed, 2 insertions(+), 6 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/oojs/ui refs/changes/73/319073/1
diff --git a/php/widgets/TextInputWidget.php b/php/widgets/TextInputWidget.php
index ed0b665..1c6e221 100644
--- a/php/widgets/TextInputWidget.php
+++ b/php/widgets/TextInputWidget.php
@@ -42,7 +42,7 @@
/**
* @param array $config Configuration options
* @param string $config['type'] HTML tag `type` attribute: 'text',
'password', 'search', 'email',
- * 'url', 'date', 'month' or 'number'. Ignored if `multiline` is
true. (default: 'text')
+ * 'url' or 'number'. Ignored if `multiline` is true. (default:
'text')
*
* Some values of `type` result in additional behaviors:
* - `search`: implies `icon: 'search'` and `indicator: 'clear'`;
when clicked, the indicator
@@ -185,8 +185,6 @@
'search',
'email',
'url',
- 'date',
- 'month',
'number'
];
return in_array( $config['type'], $allowedTypes ) ?
$config['type'] : 'text';
diff --git a/src/widgets/TextInputWidget.js b/src/widgets/TextInputWidget.js
index 31a828a..6920886 100644
--- a/src/widgets/TextInputWidget.js
+++ b/src/widgets/TextInputWidget.js
@@ -27,7 +27,7 @@
* @constructor
* @param {Object} [config] Configuration options
* @cfg {string} [type='text'] The value of the HTML `type` attribute: 'text',
'password', 'search',
- * 'email', 'url', 'date', 'month' or 'number'. Ignored if `multiline` is
true.
+ * 'email', 'url' or 'number'. Ignored if `multiline` is true.
*
* Some values of `type` result in additional behaviors:
*
@@ -545,8 +545,6 @@
'search',
'email',
'url',
- 'date',
- 'month',
'number'
];
return allowedTypes.indexOf( config.type ) !== -1 ? config.type :
'text';
--
To view, visit https://gerrit.wikimedia.org/r/319073
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibf9988461015fb6468e62bfedfa59989dc225018
Gerrit-PatchSet: 1
Gerrit-Project: oojs/ui
Gerrit-Branch: master
Gerrit-Owner: Sn1per <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits