Added a maximum date to the time range.

This commit is contained in:
browncow5 2019-01-09 19:30:33 -07:00
parent 763b3d3f26
commit 200c3f0a4b

View File

@ -288,8 +288,9 @@ TimeRangeFacet.prototype._setRangeIndicators = function() {
var format = "yyyy-MM-dd";
this._elmts.statusDiv.html(fromDate.toString(format) + " — " + toDate.toString(format));
} else {
var format = "HH:mm:ss";
this._elmts.statusDiv.html("<b style='margin-right: 4em'>" + fromDate.toString("yyyy-MM-dd") + "</b> " + fromDate.toString(format) + " &mdash; " + toDate.toString(format));
var timeOfDayformat = "HH:mm:ss";
var dayOfYearFormat = "yyyy-MM-dd";
this._elmts.statusDiv.html("<b>" + fromDate.toString(dayOfYearFormat) + "</b> " + fromDate.toString(timeOfDayformat) + " &mdash; " + toDate.toString(timeOfDayformat) + "<b> " + toDate.toString(dayOfYearFormat) + "</b>" );
}
};