applied comments
parent
de2ee2322a
commit
7a69bc46eb
|
@ -3282,7 +3282,7 @@ firstInstanceCalendarDateRange: (NGCalendarDateRange *) fir
|
|||
to: nil
|
||||
title: nil
|
||||
component: @"vtodo"
|
||||
additionalFilters: @"c_status != 2 AND c_status != 3"];
|
||||
additionalFilters: @"c_status != 1 AND c_status != 3"];
|
||||
|
||||
activeTasks = [NSNumber numberWithInt:[tasksList count]];
|
||||
|
||||
|
|
|
@ -121,8 +121,6 @@ _intValueFromHex (NSString *hexString)
|
|||
[calendar setObject: [folder ownerInContext: context]
|
||||
forKey: @"owner"];
|
||||
fActiveTasks = [folder activeTasks];
|
||||
if (fActiveTasks == nil)
|
||||
fActiveTasks = 0;
|
||||
[calendar setObject:fActiveTasks forKey:@"activeTasks" ];
|
||||
[calendars addObject: calendar];
|
||||
}
|
||||
|
|
|
@ -2915,7 +2915,13 @@ function initCalendarSelector() {
|
|||
var input = items[i].childNodesWithTag("input")[0];
|
||||
var activeTasks = items[i].childNodesWithTag("span")[0];
|
||||
$(input).observe("click", clickEventWrapper(updateCalendarStatus));
|
||||
$(activeTasks).innerHTML = "(" + activeTasks.innerText + ")";
|
||||
if (activeTasks.textContent == "0") {
|
||||
activeTasks.innerHTML = "";
|
||||
}
|
||||
else {
|
||||
activeTasks.innerHTML = "(" + activeTasks.innerText + ")";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var links = $("calendarSelectorButtons").childNodesWithTag("a");
|
||||
|
|
Loading…
Reference in New Issue