Add private field.
authorJan Schneider <jan@horde.org>
Fri, 26 Feb 2010 14:52:54 +0000 (15:52 +0100)
committerJan Schneider <jan@horde.org>
Fri, 26 Feb 2010 14:52:54 +0000 (15:52 +0100)
kronolith/js/kronolith.js
kronolith/lib/Event.php
kronolith/templates/index/edit.inc

index 4d087f1..f9b8b27 100644 (file)
@@ -3513,6 +3513,7 @@ KronolithCore = {
         $('kronolithEventEndTime').setValue(ev.et);
         $('kronolithEventStatus').setValue(ev.x);
         $('kronolithEventDescription').setValue(ev.d);
+        $('kronolithEventPrivate').setValue(ev.pv);
         $('kronolithEventLinkExport').up('span').show();
         $('kronolithEventExport').href = Kronolith.conf.URI_EVENT_EXPORT.interpolate({ id: ev.id, calendar: ev.c, type: ev.ty });
 
index 9ba03fa..8437627 100644 (file)
@@ -1255,6 +1255,7 @@ abstract class Kronolith_Event
             $json->ed = $this->end->strftime('%x');
             $json->et = $this->end->format($time_format);
             $json->a = $this->alarm;
+            $json->pv = $this->private;
             $json->tg = array_values($this->tags);
             $json->gl = $this->geoLocation;
             if ($this->recurs()) {
index bab36d4..b0e5684 100644 (file)
@@ -59,6 +59,9 @@
 <div>
   <label for="kronolithEventTarget"><?php echo _("Add event to") ?>:</label>
   <select name="targetcalendar" id="kronolithEventTarget"></select>
+  <span class="kronolithSeparator">|</span>
+  <label for="kronolithEventPrivate"><?php echo _("This event is private:") ?></label>
+  <input type="checkbox" name="private" id="kronolithEventPrivate" />
 </div>
 
 <div class="tabset">