Fix bug 265971 - \n in SUMMARY of VEVENT not interpreted. r=simon.at.orcl
This commit is contained in:
Родитель
26777066c7
Коммит
eff2acc892
|
@ -571,7 +571,7 @@
|
|||
switch (aCol.element.getAttribute("itemproperty")) {
|
||||
case "title":
|
||||
// return title, or "Untitled" if empty/null
|
||||
return task.title.replace(/\n/g, ' ') || calGetString("calendar", "eventUntitled");
|
||||
return (task.title ? task.title.replace(/\n/g, ' ') : calGetString("calendar", "eventUntitled"));
|
||||
case "entryDate":
|
||||
return this._formatDateTime(task.entryDate);
|
||||
case "dueDate":
|
||||
|
|
|
@ -61,7 +61,9 @@ var taskDetailsView = {
|
|||
if (displayElement("calendar-task-details-container", item != null) &&
|
||||
displayElement("calendar-task-view-splitter", item != null)) {
|
||||
displayElement("calendar-task-details-title-row", true);
|
||||
document.getElementById("calendar-task-details-title").value = item.title.replace(/\n/g, ' ');
|
||||
document.getElementById("calendar-task-details-title").value =
|
||||
(item.title ? item.title.replace(/\n/g, ' ') : "");
|
||||
|
||||
var organizer = item.organizer;
|
||||
if (displayElement("calendar-task-details-organizer-row", organizer != null)) {
|
||||
var name = organizer.commonName;
|
||||
|
|
|
@ -809,8 +809,7 @@ var unifinderTreeView = {
|
|||
|
||||
switch (column.element.getAttribute("itemproperty")) {
|
||||
case "title":
|
||||
return calendarEvent.title.replace(/\n/g, ' ');
|
||||
|
||||
return (calendarEvent.title ? calendarEvent.title.replace(/\n/g, ' ') : "");
|
||||
case "startDate":
|
||||
return formatUnifinderEventDateTime(calendarEvent.startDate);
|
||||
|
||||
|
|
|
@ -184,12 +184,8 @@
|
|||
<body><![CDATA[
|
||||
var evl = this.eventNameLabel;
|
||||
var item = this.mOccurrence;
|
||||
|
||||
if (item.title && item.title != "") {
|
||||
evl.value = item.title.replace(/\n/g, ' ');
|
||||
} else {
|
||||
evl.value = calGetString("calendar", "eventUntitled");
|
||||
}
|
||||
evl.value = (item.title ? item.title.replace(/\n/g, ' ') :
|
||||
calGetString("calendar", "eventUntitled"));
|
||||
]]></body>
|
||||
</method>
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче