Browse Source

#2014, changed visible to 2 day limit in zoom

codeClimate
Marc Krämer 8 years ago
committed by Alexander Wunschik
parent
commit
539afa75e7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/timeline/TimeStep.js

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

@ -610,7 +610,7 @@ TimeStep.prototype.getClassName = function() {
case 'day':
var day = current.date();
var month = current.format('MMMM').toLowerCase();
return 'vis-day' + day + ' vis-' + month + currentMonth(current) + even(day - 1) + today(current) +' vis-' + current.format('dddd').toLowerCase();;
return 'vis-day' + day + ' vis-' + month + currentMonth(current) + even(day - 1) + (this.step <= 2 ? today(current) +' vis-' + current.format('dddd').toLowerCase() : an class="s1">'');
case 'month':
return 'vis-' + current.format('MMMM').toLowerCase() +

Loading…
Cancel
Save