Browse code

BM-15176: Fix setting type compare

Mehdi Rande authored on 03/10/2019 09:53:12
Showing 1 changed files
... ...
@@ -61,7 +61,7 @@ net.bluemind.calendar.toolbar.ToolbarPresenter = function(ctx) {
61 61
   this.handler.listen(this.view_.getChild('previous'), goog.ui.Component.EventType.ACTION, function() {
62 62
     var date = this.ctx.session.get('range').getStartDate();
63 63
     // BM-7850 Fix: business week prev period
64
-    if (ctx.settings.get('showweekends') !== true && ctx.session.get('range.size') == 5) {
64
+    if (ctx.settings.get('showweekends') !== 'true' && ctx.session.get('range.size') == 5) {
65 65
       date.add(new goog.date.Interval(goog.date.Interval.DAYS, -7))
66 66
     } else { 
67 67
       date.add(new goog.date.Interval(goog.date.Interval.DAYS, -1))
... ...
@@ -71,7 +71,7 @@ net.bluemind.calendar.toolbar.ToolbarPresenter = function(ctx) {
71 71
   this.handler.listen(this.view_.getChild('next'), goog.ui.Component.EventType.ACTION, function() {
72 72
     var date = this.ctx.session.get('range').getEndDate();
73 73
     // BM-7850 Fix: business week next period
74
-    if (ctx.settings.get('showweekends') !== true && ctx.session.get('range.size') == 5) {
74
+    if (ctx.settings.get('showweekends') !== 'true' && ctx.session.get('range.size') == 5) {
75 75
       date = this.ctx.session.get('range').getStartDate();
76 76
       date.add(new goog.date.Interval(goog.date.Interval.DAYS, +7))
77 77
     }