summaryrefslogtreecommitdiffstats
path: root/toolkit/content/widgets/datepicker.js
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-30 20:56:33 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-30 20:56:33 +0200
commit6f1fcab2d81caedd96d9404386bc92f9884c30ce (patch)
tree90b742808470ebfb8d55aea1f18fe172340f2170 /toolkit/content/widgets/datepicker.js
parent7f21e9c0cd6ec3178ea38f61c6c64c63fcef36b8 (diff)
downloadUXP-6f1fcab2d81caedd96d9404386bc92f9884c30ce.tar
UXP-6f1fcab2d81caedd96d9404386bc92f9884c30ce.tar.gz
UXP-6f1fcab2d81caedd96d9404386bc92f9884c30ce.tar.lz
UXP-6f1fcab2d81caedd96d9404386bc92f9884c30ce.tar.xz
UXP-6f1fcab2d81caedd96d9404386bc92f9884c30ce.zip
Bug 1363672 - Add step support to date picker
Diffstat (limited to 'toolkit/content/widgets/datepicker.js')
-rw-r--r--toolkit/content/widgets/datepicker.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/toolkit/content/widgets/datepicker.js b/toolkit/content/widgets/datepicker.js
index 317f0ae94..25b15dae6 100644
--- a/toolkit/content/widgets/datepicker.js
+++ b/toolkit/content/widgets/datepicker.js
@@ -22,6 +22,8 @@ function DatePicker(context) {
* {Number} date [optional]
* {String} min
* {String} max
+ * {Number} step
+ * {Number} stepBase
* {Number} firstDayOfWeek
* {Array<Number>} weekends
* {Array<String>} monthStrings
@@ -41,10 +43,10 @@ function DatePicker(context) {
* Set initial date picker states.
*/
_setDefaultState() {
- const { year, month, day, min, max, firstDayOfWeek, weekends,
+ const { year, month, day, min, max, step, stepBase, firstDayOfWeek, weekends,
monthStrings, weekdayStrings, locale } = this.props;
const dateKeeper = new DateKeeper({
- year, month, day, min, max, firstDayOfWeek, weekends,
+ year, month, day, min, max, step, stepBase, firstDayOfWeek, weekends,
calViewSize: CAL_VIEW_SIZE
});