+2007-04-03 Wolfgang Sourdeau <wsourdeau@inverse.ca>
+
+ * UI/Scheduler/UIxCalTasksListView.m ([UIxCalTasksListView
+ -shouldDisplayCurrentTask]): the current task is not displayed if
+ it is NOT completed or if the "showCompletedTasks" flag is set.
+ The logic was inverted in Lightning and is now in SOGo too.
+
2007-04-02 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/Contacts/UIxContactView.m ([UIxContactView -workUrl]): we
validate_endbeforestart = "Enddate is before startdate!";
"Tasks" = "Tasks";
-"Hide completed tasks" = "Hide completed tasks";
+"Show completed tasks" = "Show completed tasks";
/* tabs */
"Task" = "Task";
validate_endbeforestart = "La date de fin est avant la date de début !";
"Tasks" = "Tâches";
-"Hide completed tasks" = "Masquer les tâches accomplies";
+"Show completed tasks" = "Afficher les tâches accomplies";
/* tabs */
"Task" = "Tâche";
NSCalendarDate *startDate;
NSCalendarDate *endDate;
- BOOL knowsToHide;
- BOOL hideCompleted;
+ BOOL knowsToShow;
+ BOOL showCompleted;
NSDictionary *currentTask;
}
{
startDate = nil;
endDate = nil;
- knowsToHide = NO;
- hideCompleted = NO;
+ knowsToShow = NO;
+ showCompleted = NO;
}
return self;
- (BOOL) shouldDisplayCurrentTask
{
- if (!knowsToHide)
+ if (!knowsToShow)
{
- hideCompleted
- = [[self queryParameterForKey: @"hide-completed"] intValue];
- knowsToHide = YES;
+ showCompleted
+ = [[self queryParameterForKey: @"show-completed"] intValue];
+ knowsToShow = YES;
}
- return !(hideCompleted
- && [[currentTask objectForKey: @"status"] intValue] == 1);
+ return ([[currentTask objectForKey: @"status"] intValue] != 1
+ || showCompleted);
}
-- (BOOL) shouldHideCompletedTasks
+- (BOOL) shouldShowCompletedTasks
{
- if (!knowsToHide)
+ if (!knowsToShow)
{
- hideCompleted
- = [[self queryParameterForKey: @"hide-completed"] intValue];
- knowsToHide = YES;
+ showCompleted
+ = [[self queryParameterForKey: @"show-completed"] intValue];
+ knowsToShow = YES;
}
- return hideCompleted;
+ return showCompleted;
}
- (BOOL) isCurrentTaskCompleted
xmlns:label="OGo:label">
<h2><var:string label:value="Tasks" /></h2>
<label><input class="checkBox"
- var:checked="shouldHideCompletedTasks"
+ var:checked="shouldShowCompletedTasks"
type="checkbox"
- onclick="return onHideCompletedTasks(this);"
- /><var:string label:value="Hide completed tasks"
+ onclick="return onShowCompletedTasks(this);"
+ /><var:string label:value="Show completed tasks"
/></label>
<ul id="tasksList" multiselect="yes">
<var:foreach list="fetchCoreTasksInfos" item="currentTask"
left: 0px;
right: 0px;
text-align: right;
- background: #dbdad5;
+ background: #d4d0c8;
border-top: 1px solid #fffffb;
border-left: 0px;
border-right: 0px;
overflow-x: hidden;
height: 6.5em;
border-bottom: 1px solid #808080;
- background: #dbdad5;
+ background: #d4d0c8;
}
div.mailer_mailcontent
UL._unfocused > LI._selected,
TABLE._unfocused#appointmentsList TR._selected TD
{
- background: #dbdad5 !important;;
+ background: #d4d0c8 !important;;
color: #fff !important;;
}
SPAN.monthsHeader
{ display: block;
white-space: nowrap;
- background: #dbdad5;
+ background: #d4d0c8;
overflow: hidden;
width: 100%;
margin: 0px;
var listOfSelection = null;
var selectedCalendarCell;
-var hideCompletedTasks = 0;
+var showCompletedTasks = 0;
var currentDay = '';
var currentView = "dayview";
}
function refreshTasks() {
- return _loadTasksHref("taskslist?hide-completed=" + hideCompletedTasks);
+ return _loadTasksHref("taskslist?show-completed=" + showCompletedTasks);
}
function refreshAppointmentsAndDisplay() {
node.addClassName("selectedDay");
}
-function onHideCompletedTasks(node) {
- hideCompletedTasks = (node.checked ? 1 : 0);
+function onShowCompletedTasks(node) {
+ showCompletedTasks = (node.checked ? 1 : 0);
return refreshTasks();
}
margin: 0px;
width: 11em;
border: 0px !important;
- background: #dbdad5 !important;
+ background: #d4d0c8 !important;
overflow: hidden;
left: 0px; }
border-left: 2px solid #fffffb;
border-bottom: 2px solid #888;
border-right: 2px solid #888;
- background-color: #dbdad5;
+ background-color: #d4d0c8;
-moz-border-top-colors: -moz-buttonhoverface ThreeDHighlight;
-moz-border-left-colors: -moz-buttonhoverface ThreeDHighlight;
-moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow transparent;
color: #000000;
font-family: Bitstream VeraSans, Tahoma;
font-size: 10pt;
- background-color: #dbdad5;
+ background-color: #d4d0c8;
border: 0px;
margin: 0px;
padding: 0px;
border-left: 2px solid #fffffb;
border-bottom: 2px solid #888;
border-right: 2px solid #888;
- background-color: #dbdad5;
+ background-color: #d4d0c8;
-moz-border-top-colors: -moz-buttonhoverface ThreeDHighlight;
-moz-border-left-colors: -moz-buttonhoverface ThreeDHighlight;
-moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow transparent;
margin: 0px;
padding: 0px;
/* background: #f00;
- */ height: 4em;
- background-color: #dbdad5;
+ */ height: 4.2m;
+ background-color: #d4d0c8;
white-space: nowrap;
overflow: auto; }
DIV.dragHandle
{ position: absolute;
z-index: 1;
- background: #dbdad5; }
+ background: #d4d0c8; }
DIV.dragHandle:active
{ background: #99a; }
{
position: relative;
color: #000;
- background: #dbdad5;
+ background: #d4d0c8;
margin-top: 1.5em;
border-top: 2px solid #fffffb;
border-left: 2px solid #fffffb;
DIV.tabsContainer > UL LI.active
{ z-index: 5;
- background: #dbdad5;
+ background: #d4d0c8;
padding-top: 2px;
padding-bottom: 2px;
margin-top: -2px; }