From c7548c91784e08289a62e4c4fa07012d7ec47367 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Wed, 24 Mar 2010 21:23:58 +0100 Subject: [PATCH] Use $w(). --- kronolith/js/kronolith.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kronolith/js/kronolith.js b/kronolith/js/kronolith.js index 12705a68a..655d20836 100644 --- a/kronolith/js/kronolith.js +++ b/kronolith/js/kronolith.js @@ -630,7 +630,7 @@ KronolithCore = { */ closeView: function(loc) { - [ 'Day', 'Week', 'Month', 'Year', 'Tasks', 'Agenda' ].each(function(a) { + $w('Day Week Month Year Tasks Agenda').each(function(a) { a = $('kronolithNav' + a); if (a) { a.removeClassName('on'); @@ -1035,7 +1035,7 @@ KronolithCore = { */ toggleCalendar: function(type, calendar) { Kronolith.conf.calendars[type][calendar].show = !Kronolith.conf.calendars[type][calendar].show; - if ([ 'day', 'week', 'month', 'year' ].include(this.view)) { + if ($w('day week month year').include(this.view)) { if (this.view == 'year' || Object.isUndefined(this.ecache.get(type)) || Object.isUndefined(this.ecache.get(type).get(calendar))) { @@ -3072,7 +3072,7 @@ KronolithCore = { deleteTasksCache: function(task, list) { this.deleteCache(task, [ 'external', 'tasks/' + list ]); - [ 'complete', 'incomplete' ].each(function(type) { + $w('complete incomplete').each(function(type) { if (!Object.isUndefined(this.tcache.get(type)) && !Object.isUndefined(this.tcache.get(type).get(list))) { this.tcache.get(type).get(list).unset(task); -- 2.11.0