Add exception icon to ajax view
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 8 May 2010 20:46:07 +0000 (16:46 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 8 May 2010 20:46:07 +0000 (16:46 -0400)
kronolith/js/kronolith.js
kronolith/lib/Kronolith.php

index ba4de6d..5593096 100644 (file)
@@ -1833,6 +1833,9 @@ KronolithCore = {
         if (event.r) {
             div.insert(' ')
                 .insert(new Element('img', { src: Kronolith.conf.URI_IMG + 'recur-' + Kronolith.conf.calendars[calendar[0]][calendar[1]].fg.substr(1) + '.png', title: Kronolith.text.recur[event.r] }));
+        } else if (event.bid) {
+            div.insert(' ')
+                .insert(new Element('img', { src: Kronolith.conf.URI_IMG + 'exception-' + Kronolith.conf.calendars[calendar[0]][calendar[1]].fg.substr(1) + '.png', title: Kronolith.text.recur['Exception'] }));
         }
         return div;
     },
index 3fec494..cd527b7 100644 (file)
@@ -377,6 +377,7 @@ class Kronolith
                        Horde_Date_Recurrence::RECUR_YEARLY_WEEKDAY) as $recurType) {
             $code['text']['recur'][$recurType] = self::recurToString($recurType);
         }
+        $code['text']['recur']['Exception'] = _("Exception");
 
         // Maps
         $code['conf']['maps'] = $GLOBALS['conf']['maps'];