From: Michael J. Rubinsky Date: Wed, 10 Mar 2010 14:23:43 +0000 (-0500) Subject: Don't show edit link for Holiday calendars X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=f7f1e9bb0e1ee7f29fe6ac59783b8dab94d334f4;p=horde.git Don't show edit link for Holiday calendars --- 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())); }, /**