From c0ca1af07f25d33b8ca484a2e09669d6ff260020 Mon Sep 17 00:00:00 2001 From: yotamberk Date: Sun, 20 Nov 2016 12:09:09 +0200 Subject: [PATCH] Fixes #2319 (#2335) * Fix brackets problem * Fix timeStep.getClassName --- lib/timeline/TimeStep.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/timeline/TimeStep.js b/lib/timeline/TimeStep.js index 12a7336c..4bb8f3dd 100644 --- a/lib/timeline/TimeStep.js +++ b/lib/timeline/TimeStep.js @@ -618,7 +618,8 @@ TimeStep.prototype.getClassName = function() { even(current.minutes()).trim(); case 'hour': - return 'vis-h' + current.hours() + (this.step == 4 ? '-h' + (current.hours() + 4) : '') + + return 'vis-h' + current.hours() + + (this.step == 4 ? '-h' + (current.hours() + 4) : '') + today(current) + even(current.hours()); @@ -633,9 +634,8 @@ TimeStep.prototype.getClassName = function() { ' vis-' + current.format('MMMM').toLowerCase() + today(current) + currentMonth(current) + - this.step <= 2 ? today(current) : '' + - this.step <= 2 ? ' vis-' + current.format('dddd').toLowerCase() : '' + - even(current.date() - 1); + (this.step <= 2 ? today(current) : '') + + (this.step <= 2 ? ' vis-' + current.format('dddd').toLowerCase() : '' + even(current.date() - 1)); case 'month': return 'vis-' + current.format('MMMM').toLowerCase() +