Skip to content
This repository was archived by the owner on Mar 4, 2021. It is now read-only.

Commit d74da71

Browse files
authored
Merge pull request #16 from bpanatta/patch-1
Fix custom day labels not working
2 parents fad5321 + bcca356 commit d74da71

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

calendarorganizer.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,10 @@ function Calendar(id, size, labelSettings, colors, options) {
3131
if (options.months != undefined && options.months.length == 12) months = options.months;
3232

3333
var label = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
34-
this.defaultLabels = label;
35-
3634
if (options.days != undefined && options.days.length == 7) label = options.days;
3735

3836
this.months = months;
37+
this.defaultLabels = label;
3938

4039
this.label = [];
4140
this.labels = [];
@@ -720,4 +719,4 @@ Organizer.prototype.setOnLongClickListener = function (theCase, backCallback, ne
720719
}
721720
break;
722721
}
723-
}
722+
}

0 commit comments

Comments
 (0)