Commit ab93df1a authored by Tomas Pettersson's avatar Tomas Pettersson 🏸

period bugfix

parent 0ae297fc
......@@ -13,6 +13,11 @@ var url = '/demo'
require('../bower_components/leaflet-forcing-boundary/src/routes/forcingboundary')(url,app);
app.get(url + '/availableTimes/ms/:domainmodel', function (req, res) {
return res.send({"availableTime":{"start":1507424400000,"stop":1507849200000},"missingTime":[]});
});
app.use('/bower_components', express.static(path.join(__dirname, '../bower_components')));
app.use('/src', express.static(path.join(__dirname, '../src')));
app.use('/demo', express.static(__dirname));
......
......@@ -592,13 +592,12 @@ var STWkit;
sliderOpt['max'] = self.maxDate.format("X");
self.slider.update(sliderOpt);
self.ready = true;
if (document.body.contains(self.forwardButton))
self.forwardButton.click();
self.clear();
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, {});
self.defaults();
}
});
return _this;
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -654,13 +654,13 @@ module STWkit {
sliderOpt['max'] = self.maxDate.format("X");
self.slider.update(sliderOpt);
self.ready = true;
if (document.body.contains(self.forwardButton)) self.forwardButton.click();
self.clear();
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, {});
self.defaults();
}
});
}
......
Markdown is supported
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