diff --git a/HISTORY.md b/HISTORY.md index 3ecfe9b0..8ee7ce20 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -19,6 +19,8 @@ http://visjs.org `.vis.timeline .item.range { overflow: visible; }` instead of `.vis.timeline .item.range .content { overflow: visible; }`. See example 18_range_overflow.html. +- Fixed invalid css names for time axis grid, renamed hours class names from + `4-8h` to `h4-h8`. ## not yet released, version 3.9.2-SNAPSHOT diff --git a/docs/timeline.html b/docs/timeline.html index 59eec23e..96a7c333 100644 --- a/docs/timeline.html +++ b/docs/timeline.html @@ -1382,10 +1382,10 @@ To load a locale into the Timeline not supported by default, one can add a new l Current datetoday, tomorrow, yesterday, current-week, current-month, current-year - Hours0h, 1h, ..., 23h + Hoursh0, h1, ..., h23 - Grouped hours0-4h to 20-24h + Grouped hoursh0-h4 to h20-h24 Weekdaymonday, tuesday, wednesday, thursday, friday, saturday, sunday diff --git a/lib/timeline/TimeStep.js b/lib/timeline/TimeStep.js index 8d8bc7cb..5313ace1 100644 --- a/lib/timeline/TimeStep.js +++ b/lib/timeline/TimeStep.js @@ -576,9 +576,9 @@ TimeStep.prototype.getClassName = function() { case 'hour': var hours = date.hours(); if (this.step == 4) { - hours = hours + '-' + (hours + 4); + hours = hours + '-h' + (hours + 4); } - return hours + 'h' + today(date) + even(date.hours()); + return 'h' + hours + today(date) + even(date.hours()); case 'weekday': return date.format('dddd').toLowerCase() +