From e507eba904dcb4ae23075a511c61c9d0ff132053 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Fri, 13 Mar 2009 15:22:21 +0100 Subject: [PATCH] Wrap, appendChild() -> insert(). --- kronolith/js/src/kronolith.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/kronolith/js/src/kronolith.js b/kronolith/js/src/kronolith.js index e69180817..d5731790f 100644 --- a/kronolith/js/src/kronolith.js +++ b/kronolith/js/src/kronolith.js @@ -472,7 +472,9 @@ KronolithCore = { shared++; div = $('kronolithSharedCalendars'); } - div.appendChild(new Element('DIV', { 'calendar': cal.key, 'calendarclass': 'internal', 'class': cal.value.show ? 'kronolithCalOn' : 'kronolithCalOff' }).setStyle({ backgroundColor: cal.value.bg, color: cal.value.fg }).update(cal.value.name)); + div.insert(new Element('DIV', { 'calendar': cal.key, 'calendarclass': 'internal', 'class': cal.value.show ? 'kronolithCalOn' : 'kronolithCalOff' }) + .setStyle({ backgroundColor: cal.value.bg, color: cal.value.fg }) + .update(cal.value.name)); }); if (my) { $('kronolithMyCalendars').show(); @@ -510,7 +512,10 @@ KronolithCore = { remote = $H(Kronolith.conf.calendars.remote); remote.each(function(cal) { - $('kronolithRemoteCalendars').appendChild(new Element('DIV', { 'calendar': cal.key, 'calendarclass': 'remote', 'class': cal.value.show ? 'kronolithCalOn' : 'kronolithCalOff' }).setStyle({ backgroundColor: cal.value.bg, color: cal.value.fg }).update(cal.value.name)); + $('kronolithRemoteCalendars') + .insert(new Element('DIV', { 'calendar': cal.key, 'calendarclass': 'remote', 'class': cal.value.show ? 'kronolithCalOn' : 'kronolithCalOff' }) + .setStyle({ backgroundColor: cal.value.bg, color: cal.value.fg }) + .update(cal.value.name)); }); if (remote.size()) { $('kronolithRemoteCalendars').show(); -- 2.11.0