From f7f1e9bb0e1ee7f29fe6ac59783b8dab94d334f4 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Wed, 10 Mar 2010 09:23:43 -0500 Subject: [PATCH] Don't show edit link for Holiday calendars --- kronolith/js/kronolith.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/kronolith/js/kronolith.js b/kronolith/js/kronolith.js index fce980fa0..6db826c78 100644 --- a/kronolith/js/kronolith.js +++ b/kronolith/js/kronolith.js @@ -885,13 +885,15 @@ KronolithCore = { if (!div) { div = this.getCalendarList(type, cal.owner); } - div.insert(new Element('span', { className: 'kronolithCalEdit' }) - .insert('›')) - .insert(new Element('div', { className: cal.show ? 'kronolithCalOn' : 'kronolithCalOff' }) - .store('calendar', id) - .store('calendarclass', type) - .setStyle({ backgroundColor: cal.bg, color: cal.fg }) - .update(cal.name.escapeHTML())); + if (type != 'holiday') { + div.insert(new Element('span', { className: 'kronolithCalEdit' }) + .insert('›')); + } + div.insert(new Element('div', { className: cal.show ? 'kronolithCalOn' : 'kronolithCalOff' }) + .store('calendar', id) + .store('calendarclass', type) + .setStyle({ backgroundColor: cal.bg, color: cal.fg }) + .update(cal.name.escapeHTML())); }, /** -- 2.11.0