From 435071be649e9bb81a9581abfc309edaac0178c6 Mon Sep 17 00:00:00 2001
From: =?utf8?q?Philipp=20Sch=C3=BCle?=
Date: Thu, 26 Feb 2015 15:36:30 +0100
Subject: [PATCH] 0010866: Frozen whole day events
MIME-Version: 1.0
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit
checks if all day event is visible in redrawWholeDayEvents()
https://forge.tine20.org/view.php?id=10866
Change-Id: Icf363e68ea519d5f3dfa708dac812b20860b378b
Reviewed-on: http://gerrit.tine20.com/customers/1695
Tested-by: Jenkins CI (http://ci.tine20.com/)
Tested-by: sstamer
Reviewed-by: Philipp Schüle
---
tine20/Calendar/js/DaysView.js | 3 ++-
tine20/Calendar/js/EventUI.js | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/tine20/Calendar/js/DaysView.js b/tine20/Calendar/js/DaysView.js
index c393b21..3054f0e 100644
--- a/tine20/Calendar/js/DaysView.js
+++ b/tine20/Calendar/js/DaysView.js
@@ -838,7 +838,8 @@ Ext.extend(Tine.Calendar.DaysView, Ext.Container, {
redrawWholeDayEvents: function() {
this.store.each(function(event) {
- if (event.ui && event.get('is_all_day_event')) {
+ // check if event is currently visible by looking into ui.domIds
+ if (event.ui && event.ui.domIds.length > 0 && event.get('is_all_day_event')) {
this.removeEvent(event);
this.insertEvent(event);
}
diff --git a/tine20/Calendar/js/EventUI.js b/tine20/Calendar/js/EventUI.js
index fb96844..bf2999f 100644
--- a/tine20/Calendar/js/EventUI.js
+++ b/tine20/Calendar/js/EventUI.js
@@ -48,7 +48,7 @@ Tine.Calendar.EventUI.prototype = {
*/
getEls: function() {
var domEls = [];
- for (var i=0; i