Permalink
Browse files

REST-URL-eingebaut

  • Loading branch information...
1 parent 3b33d4e commit 4dda3df837b5ae9a35e67799fea815277eeb1bab unknown committed Mar 1, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/main/scala/eu/kaatz/iCal/model/Event.scala
@@ -23,7 +23,11 @@ object Event {
def writes(e: Event): JsValue = JsObject(Seq(
"id" -> JsString(e.id),
"title" -> JsString(e.title),
- "description" -> JsString(e.description),
+ "url" -> JsString(new StringBuffer().append("javascript:openDialog('").
+ append(e.title).
+ append("','").
+ append(e.description).
+ append("'").toString),
"tags" -> JsArray(e.tags.map(x => JsString(x.trim)).toList),
"start" -> JsNumber((e.start.getTime() / 1000)),
"end" -> JsNumber((e.end.getTime() / 1000))))

0 comments on commit 4dda3df

Please sign in to comment.