Browse Source

Fixes #2319 (#2335)

* Fix brackets problem
* Fix timeStep.getClassName
codeClimate
yotamberk 7 years ago
committed by Alexander Wunschik
parent
commit
c0ca1af07f
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      lib/timeline/TimeStep.js

+ 4
- 4
lib/timeline/TimeStep.js View File

@ -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() +

Loading…
Cancel
Save