Browse code

[Calendar] BM-12842 Fix: Add a style to event with pending changes

Mehdi Rande authored on 09/03/2018 13:15:07
Showing 4 changed files
... ...
@@ -318,7 +318,7 @@ net.bluemind.calendar.day.DayPresenter.prototype.vseriesToMV_ = function(calenda
318 318
   var model = this.adaptor_.toModelView(vseries, calendar);
319 319
   
320 320
   var change = goog.array.find(changes, function(change) {
321
-    return change['itemId'] == model.uid && change['container'] == model.container;
321
+    return change['itemId'] == model.uid && change['container'] == model.calendar;
322 322
   });
323 323
   
324 324
   model.states.synced = !goog.isDefAndNotNull(change);
... ...
@@ -253,7 +253,7 @@ net.bluemind.calendar.list.ListPresenter.prototype.vseriesToMV_ = function(calen
253 253
   }
254 254
   var model = this.adaptor_.toModelView(vseries, calendar);
255 255
   var change = goog.array.find(changes, function(change) {
256
-    return change['itemId'] == model.uid && change['container'] == model.container;
256
+    return change['itemId'] == model.uid && change['container'] == model.calendar;
257 257
   });
258 258
   
259 259
   model.states.synced = !goog.isDefAndNotNull(change);
... ...
@@ -224,7 +224,7 @@ net.bluemind.calendar.search.SearchPresenter.prototype.vseriesToMV_ = function(c
224 224
   var model = this.adaptor_.toModelView(vseries, calendar);
225 225
   
226 226
   var change = goog.array.find(changes, function(change) {
227
-    return change['itemId'] == model.uid && change['container'] == model.container;
227
+    return change['itemId'] == model.uid && change['container'] == model.calendar;
228 228
   });
229 229
   
230 230
   model.states.synced = !goog.isDefAndNotNull(change);
... ...
@@ -268,7 +268,7 @@ net.bluemind.calendar.vevent.VEventPresenter.prototype.vseriesToMV_ = function(c
268 268
   var model = this.adaptor_.toModelView(vseries, calendar);
269 269
 
270 270
   var change = goog.array.find(changes, function(change) {
271
-    return change['itemId'] == model.uid && change['container'] == model.container;
271
+    return change['itemId'] == model.uid && change['container'] == model.calendar;
272 272
   });
273 273
 
274 274
   model.states.synced = !goog.isDefAndNotNull(change);