From: Bartosz DziewoƄski Date: Thu, 10 Sep 2015 18:03:53 +0000 (+0200) Subject: mw.widget.DateInputWidget: Correct docs for mustBeAfter and mustBeBefore X-Git-Tag: 1.31.0-rc.0~10057^2 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=e57ba5ff4ea6217a3a75dfddf10ebcb159ea89a5;p=lhc%2Fweb%2Fwiklou.git mw.widget.DateInputWidget: Correct docs for mustBeAfter and mustBeBefore I meant to comment on daeb5371dd6a1b3576f52786936e073d24ceba1d with this, but it seems I forgot to publish my draft of inline comment. Change-Id: I3d8cbc7d1d7c771b69e23938c701f47ba3a92a0c --- diff --git a/resources/src/mediawiki.widgets/mw.widgets.DateInputWidget.js b/resources/src/mediawiki.widgets/mw.widgets.DateInputWidget.js index 357e72eb43..b478c4a95c 100644 --- a/resources/src/mediawiki.widgets/mw.widgets.DateInputWidget.js +++ b/resources/src/mediawiki.widgets/mw.widgets.DateInputWidget.js @@ -76,8 +76,8 @@ * language. When not given, defaults to a translated version of 'YYYY-MM-DD' or 'YYYY-MM', * depending on `precision`. * @cfg {boolean} [required=false] Mark the field as required. Implies `indicator: 'required'`. - * @cfg {string} mustBeAfter Validates the date to be after this. Should be `YYYY-MM-DD` format. - * @cfg {string} mustBeBefore Validates the date to be before this. Should be `YYYY-MM-DD` format. + * @cfg {string} [mustBeAfter] Validates the date to be after this. In the 'YYYY-MM-DD' format. + * @cfg {string} [mustBeBefore] Validates the date to be before this. In the 'YYYY-MM-DD' format. */ mw.widgets.DateInputWidget = function MWWDateInputWidget( config ) { // Config initialization