Don't show edit link for Holiday calendars
authorMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 10 Mar 2010 14:23:43 +0000 (09:23 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 10 Mar 2010 14:23:43 +0000 (09:23 -0500)
kronolith/js/kronolith.js

index fce980f..6db826c 100644 (file)
@@ -885,13 +885,15 @@ KronolithCore = {
         if (!div) {
             div = this.getCalendarList(type, cal.owner);
         }
-        div.insert(new Element('span', { className: 'kronolithCalEdit' })
-                   .insert('&rsaquo;'))
-            .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('&rsaquo;'));
+        }
+        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()));
     },
 
     /**