Decode HTML entities in JSON of calendar module
This commit is contained in:
parent
0307b8339a
commit
ea4b21e991
|
@ -789,15 +789,14 @@ function onViewEventCallback(http) {
|
||||||
|
|
||||||
para = $(paras[1]);
|
para = $(paras[1]);
|
||||||
if (data["calendar"].length) {
|
if (data["calendar"].length) {
|
||||||
// Remove owner email from calendar's name
|
para.down("SPAN", 1).update(data["calendar"]);
|
||||||
para.down("SPAN", 1).update(data["calendar"].escapeHTML());
|
|
||||||
para.show();
|
para.show();
|
||||||
} else
|
} else
|
||||||
para.hide();
|
para.hide();
|
||||||
|
|
||||||
para = $(paras[2]);
|
para = $(paras[2]);
|
||||||
if (data["location"].length) {
|
if (data["location"].length) {
|
||||||
para.down("SPAN", 1).update(data["location"].escapeHTML());
|
para.down("SPAN", 1).update(data["location"]);
|
||||||
para.show();
|
para.show();
|
||||||
} else
|
} else
|
||||||
para.hide();
|
para.hide();
|
||||||
|
@ -1924,7 +1923,7 @@ function newEventDIV(eventRep, event) {
|
||||||
textDiv.appendChild(createElement("br"));
|
textDiv.appendChild(createElement("br"));
|
||||||
var span = createElement("span", null, "location");
|
var span = createElement("span", null, "location");
|
||||||
var text = _("Location:") + " " + event[7];
|
var text = _("Location:") + " " + event[7];
|
||||||
span.appendChild(document.createTextNode(text));
|
span.update(text);
|
||||||
textDiv.appendChild(span);
|
textDiv.appendChild(span);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue