diff --git a/UI/Scheduler/UIxCalListingActions.m b/UI/Scheduler/UIxCalListingActions.m index 187f79895..9dcb76dcd 100644 --- a/UI/Scheduler/UIxCalListingActions.m +++ b/UI/Scheduler/UIxCalListingActions.m @@ -86,7 +86,7 @@ static NSArray *tasksFields = nil; { tasksFields = [NSArray arrayWithObjects: @"c_name", @"c_folder", @"c_status", @"c_title", @"c_enddate", - @"c_classification", @"editable", nil]; + @"c_classification", @"editable", @"c_priority", nil]; [tasksFields retain]; } } diff --git a/UI/WebServerResources/SchedulerUI.css b/UI/WebServerResources/SchedulerUI.css index 38c4ec780..af1f70ec2 100644 --- a/UI/WebServerResources/SchedulerUI.css +++ b/UI/WebServerResources/SchedulerUI.css @@ -102,6 +102,14 @@ UL#tasksList LI.completed UL#tasksList LI.duelater { color: #999; } +UL#tasksList LI.important SPAN +{ color: #f00 !important; + background-image: url(important.png); + background-repeat: no-repeat; + background-position: 5px 2px; + padding-left: 15px; +} + UL#tasksList LI[class~="_selected"].overdue { color: #fff !important; background-color: #f00 !important; } diff --git a/UI/WebServerResources/SchedulerUI.js b/UI/WebServerResources/SchedulerUI.js index 1df1f4814..7de559fb9 100644 --- a/UI/WebServerResources/SchedulerUI.js +++ b/UI/WebServerResources/SchedulerUI.js @@ -664,7 +664,7 @@ function tasksListCallback(http) { var cname = escape(data[i][0]); listItem.setAttribute("id", calendar + "-" + cname); //listItem.addClassName(data[i][5]); // Classification - listItem.addClassName(data[i][7]); + listItem.addClassName(data[i][8]); listItem.calendar = calendar; listItem.addClassName("calendarFolder" + calendar); listItem.cname = cname; @@ -672,6 +672,9 @@ function tasksListCallback(http) { input.setAttribute("type", "checkbox"); if (parseInt(data[i][6]) == 0) input.setAttribute ("disabled", true); + if (parseInt(data[i][7]) == 1) { + listItem.addClassName ("important"); + } listItem.appendChild(input); input.observe("click", updateTaskStatus, true); input.setAttribute("value", "1"); @@ -679,7 +682,10 @@ function tasksListCallback(http) { input.setAttribute("checked", "checked"); $(input).addClassName("checkBox"); - listItem.appendChild(document.createTextNode(data[i][3])); + var t = new Element ("span"); + t.update (data[i][3]); + //listItem.appendChild(document.createTextNode(data[i][3])); + listItem.appendChild (t); } list.scrollTop = list.previousScroll; diff --git a/UI/WebServerResources/important.png b/UI/WebServerResources/important.png new file mode 100644 index 000000000..91ed5127b Binary files /dev/null and b/UI/WebServerResources/important.png differ