Bug 435904 â untitled tasks generate an exception when sorting; r=ssitter
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@251959 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -46,7 +46,6 @@
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
<stringbundleset id="calendar_stringbundles">
|
||||
<stringbundle id="bundle_branding" src="chrome://branding/locale/brand.properties"/>
|
||||
<stringbundle id="bundle_calendar" src="chrome://calendar/locale/calendar.properties"/>
|
||||
</stringbundleset>
|
||||
<script type="application/x-javascript" src="chrome://calendar/content/calendar-common-sets.js"/>
|
||||
|
||||
|
||||
@@ -446,7 +446,7 @@
|
||||
switch (aCol.element.getAttribute("anonid")) {
|
||||
case "calendar-task-tree-col-title":
|
||||
// return title, or "Untitled" if empty/null
|
||||
return task.title || gCalendarBundle.getString("eventUntitled");
|
||||
return task.title || calGetString("calendar", "eventUntitled");
|
||||
case "calendar-task-tree-col-startdate":
|
||||
return this._formatDateTime(task.entryDate);
|
||||
case "calendar-task-tree-col-duedate":
|
||||
@@ -1077,7 +1077,7 @@
|
||||
// No priority set (0) should be weighted as "normal" (5).
|
||||
return compareNumber(a.priority || 5, b.priority || 5) * modifier;
|
||||
case "calendar-task-tree-col-title":
|
||||
return compareString(a.title.toLowerCase(), b.title.toLowerCase()) * modifier;
|
||||
return compareString(a.title ? a.title.toLowerCase() : "", b.title ? b.title.toLowerCase() : "") * modifier;
|
||||
case "calendar-task-tree-col-startdate":
|
||||
return compareDate(a.entryDate, b.entryDate) * modifier;
|
||||
case "calendar-task-tree-col-duedate":
|
||||
|
||||
@@ -121,7 +121,3 @@
|
||||
</keyset>
|
||||
|
||||
<keyset id="tasksKeys"/>
|
||||
|
||||
<script type="application/x-javascript">
|
||||
var gCalendarBundle = document.getElementById("bundle_calendar");
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user