Fix bug 265971 - \n in SUMMARY of VEVENT not interpreted. r=philipp
--HG-- extra : rebase_source : 37101949ea955d677e76a1427a662ed5429468a0
This commit is contained in:
Родитель
ee7ed99290
Коммит
4d32b3edf8
|
@ -571,7 +571,7 @@
|
|||
switch (aCol.element.getAttribute("itemproperty")) {
|
||||
case "title":
|
||||
// return title, or "Untitled" if empty/null
|
||||
return task.title || calGetString("calendar", "eventUntitled");
|
||||
return task.title.replace(/\n/g, ' ') || calGetString("calendar", "eventUntitled");
|
||||
case "entryDate":
|
||||
return this._formatDateTime(task.entryDate);
|
||||
case "dueDate":
|
||||
|
|
|
@ -61,7 +61,7 @@ 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;
|
||||
document.getElementById("calendar-task-details-title").value = item.title.replace(/\n/g, ' ');
|
||||
var organizer = item.organizer;
|
||||
if (displayElement("calendar-task-details-organizer-row", organizer != null)) {
|
||||
var name = organizer.commonName;
|
||||
|
|
|
@ -783,7 +783,7 @@ var unifinderTreeView = {
|
|||
|
||||
switch (column.element.getAttribute("itemproperty")) {
|
||||
case "title":
|
||||
return calendarEvent.title;
|
||||
return calendarEvent.title.replace(/\n/g, ' ');
|
||||
|
||||
case "startDate":
|
||||
return formatUnifinderEventDateTime(calendarEvent.startDate);
|
||||
|
|
|
@ -186,9 +186,9 @@
|
|||
var item = this.mOccurrence;
|
||||
|
||||
if (item.title && item.title != "") {
|
||||
evl.value = item.title;
|
||||
evl.value = item.title.replace(/\n/g, ' ');
|
||||
} else {
|
||||
evl.value = calGetString("calendar", "eventUntitled")
|
||||
evl.value = calGetString("calendar", "eventUntitled");
|
||||
}
|
||||
]]></body>
|
||||
</method>
|
||||
|
|
Загрузка…
Ссылка в новой задаче