mw.widget.DateInputWidget: Correct docs for mustBeAfter and mustBeBefore
authorBartosz Dziewoński <matma.rex@gmail.com>
Thu, 10 Sep 2015 18:03:53 +0000 (20:03 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Thu, 10 Sep 2015 18:03:53 +0000 (20:03 +0200)
I meant to comment on daeb5371dd6a1b3576f52786936e073d24ceba1d with
this, but it seems I forgot to publish my draft of inline comment.

Change-Id: I3d8cbc7d1d7c771b69e23938c701f47ba3a92a0c

resources/src/mediawiki.widgets/mw.widgets.DateInputWidget.js

index 357e72e..b478c4a 100644 (file)
@@ -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