зеркало из https://github.com/mozilla/pjs.git
Bug Bug 349960 All day events should be at top on month view event lists. Patch by Markus Adrario <MarkusAdrario@web.de>, r=jminta
This commit is contained in:
Родитель
df082ca502
Коммит
fe122658b8
|
@ -392,6 +392,10 @@
|
|||
}
|
||||
|
||||
if (aIsEvent && bIsEvent) {
|
||||
// sort all day events before events with a duration
|
||||
if (a.item.startDate.isDate && !b.item.startDate.isDate) return -1;
|
||||
if (!a.item.startDate.isDate && b.item.startDate.isDate) return 1;
|
||||
|
||||
var cmp;
|
||||
|
||||
cmp = a.item.startDate.compare(b.item.startDate);
|
||||
|
|
Загрузка…
Ссылка в новой задаче