Commit f74f4c62 authored by Tomas Pettersson's avatar Tomas Pettersson 🏸
Browse files

max - min date updates in select period

parent ab93df1a
...@@ -591,13 +591,13 @@ var STWkit; ...@@ -591,13 +591,13 @@ var STWkit;
sliderOpt['min'] = self.minDate.format("X"); sliderOpt['min'] = self.minDate.format("X");
sliderOpt['max'] = self.maxDate.format("X"); sliderOpt['max'] = self.maxDate.format("X");
self.slider.update(sliderOpt); self.slider.update(sliderOpt);
var startDatePicker = UIkit.datepicker(self.startDateInput, { minDate: self.minDate.format(self.dateFormat), maxDate: self.maxDate.format(self.dateFormat), format: self.dateFormat });
var startTimePicker = UIkit.timepicker(self.startTimeInput, {});
self.ready = true; self.ready = true;
self.clear(); self.clear();
self.defaults(); self.defaults();
} }
}); });
var startDatePicker = UIkit.datepicker(self.startDateInput, { minDate: self.minDate.format(self.dateFormat), maxDate: self.maxDate.format(self.dateFormat), format: self.dateFormat });
var startTimePicker = UIkit.timepicker(self.startTimeInput, {});
} }
}); });
return _this; return _this;
......
This diff is collapsed.
...@@ -653,14 +653,14 @@ module STWkit { ...@@ -653,14 +653,14 @@ module STWkit {
sliderOpt['min'] = self.minDate.format("X"); sliderOpt['min'] = self.minDate.format("X");
sliderOpt['max'] = self.maxDate.format("X"); sliderOpt['max'] = self.maxDate.format("X");
self.slider.update(sliderOpt); self.slider.update(sliderOpt);
var startDatePicker = UIkit.datepicker(<any>self.startDateInput, { minDate: self.minDate.format(self.dateFormat), maxDate: self.maxDate.format(self.dateFormat), format: self.dateFormat });
var startTimePicker = UIkit.timepicker(<any>self.startTimeInput, {});
self.ready = true; self.ready = true;
self.clear(); self.clear();
self.defaults(); self.defaults();
} }
}); });
var startDatePicker = UIkit.datepicker(<any>self.startDateInput, { minDate: self.minDate.format(self.dateFormat), maxDate: self.maxDate.format(self.dateFormat), format: self.dateFormat });
var startTimePicker = UIkit.timepicker(<any>self.startTimeInput, {});
} }
}); });
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment