From: Jan Schneider Date: Mon, 3 May 2010 16:36:50 +0000 (+0200) Subject: No reason to show and hide these anymore. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=9d71f43f4650d691d764662b9e612a39674012a0;p=horde.git No reason to show and hide these anymore. --- diff --git a/kronolith/js/kronolith.js b/kronolith/js/kronolith.js index 35a844bfc..cc7c86b9a 100644 --- a/kronolith/js/kronolith.js +++ b/kronolith/js/kronolith.js @@ -952,49 +952,16 @@ KronolithCore = { */ updateCalendarList: function() { - var my = 0, shared = 0, ext = $H(), extNames = $H(), - remote, holidays, api, div; + var ext = $H(), extNames = $H(); $H(Kronolith.conf.calendars.internal).each(function(cal) { - if (cal.value.owner) { - my++; - } else { - shared++; - } this.insertCalendarInList('internal', cal.key, cal.value); }, this); - if (my) { - $('kronolithMyCalendars').show(); - } else { - $('kronolithMyCalendars').hide(); - } - if (shared) { - $('kronolithSharedCalendars').show(); - } else { - $('kronolithSharedCalendars').hide(); - } if (Kronolith.conf.tasks) { - my = 0; - shared = 0; $H(Kronolith.conf.calendars.tasklists).each(function(cal) { - if (cal.value.owner) { - my++; - } else { - shared++; - } this.insertCalendarInList('tasklists', cal.key, cal.value); }, this); - if (my) { - $('kronolithMyTasklists').show(); - } else { - $('kronolithMyTasklists').hide(); - } - if (shared) { - $('kronolithSharedTasklists').show(); - } else { - $('kronolithSharedTasklists').hide(); - } } $H(Kronolith.conf.calendars.external).each(function(cal) { @@ -1015,25 +982,13 @@ KronolithCore = { }, this); }, this); - remote = $H(Kronolith.conf.calendars.remote); - remote.each(function(cal) { + $H(Kronolith.conf.calendars.remote).each(function(cal) { this.insertCalendarInList('remote', cal.key, cal.value); }, this); - if (remote.size()) { - $('kronolithRemoteCalendars').show(); - } else { - $('kronolithRemoteCalendars').hide(); - } - holidays = $H(Kronolith.conf.calendars.holiday); - holidays.each(function(cal) { + $H(Kronolith.conf.calendars.holiday).each(function(cal) { this.insertCalendarInList('holiday', cal.key, cal.value); }, this); - if (holidays.size()) { - $('kronolithHolidayCalendars').show(); - } else { - $('kronolithHolidayCalendars').hide(); - } }, /** diff --git a/kronolith/templates/index/index.inc b/kronolith/templates/index/index.inc index b0d198e89..7c0dae9f2 100644 --- a/kronolith/templates/index/index.inc +++ b/kronolith/templates/index/index.inc @@ -97,7 +97,7 @@ -