mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-06-08 20:09:44 +00:00
GUI changes for mail labels management
This commit is contained in:
@@ -965,7 +965,7 @@ function eventsListCallback(http) {
|
||||
td.observe("mousedown", listRowMouseDownHandler, true);
|
||||
var colorDiv = createElement("div", false, "colorBox calendarFolder" + calendar);
|
||||
td.appendChild(colorDiv);
|
||||
colorDiv.update('OO');
|
||||
colorDiv.update(' ');
|
||||
var span = createElement("span");
|
||||
td.appendChild(span);
|
||||
span.update(data[i][4]); // title
|
||||
@@ -1093,7 +1093,7 @@ function tasksListCallback(http) {
|
||||
row.appendChild(cell);
|
||||
var colorDiv = createElement("div", false, "colorBox calendarFolder" + calendar);
|
||||
cell.appendChild(colorDiv);
|
||||
colorDiv.update('OO');
|
||||
colorDiv.update(' ');
|
||||
var t = new Element ("span");
|
||||
cell.appendChild(t);
|
||||
t.update(data[i][4]); // title
|
||||
@@ -2834,8 +2834,9 @@ function initCalendarSelector() {
|
||||
|
||||
function onCalendarSelectionChange(event) {
|
||||
var target = Event.element(event);
|
||||
if (target.tagName == 'SPAN')
|
||||
if (target.tagName == 'DIV') {
|
||||
target = target.parentNode;
|
||||
}
|
||||
|
||||
onRowClick(event, target);
|
||||
}
|
||||
@@ -3073,7 +3074,7 @@ function appendCalendar(folderName, folderPath) {
|
||||
var colorBox = document.createElement("div");
|
||||
li.appendChild(colorBox);
|
||||
li.appendChild(document.createTextNode(folderName));
|
||||
colorBox.appendChild(document.createTextNode("OO"));
|
||||
colorBox.appendChild(document.createTextNode("\u00a0"));
|
||||
|
||||
$(colorBox).addClassName("colorBox");
|
||||
$(colorBox).addClassName('calendarFolder' + folderPath.substr(1));
|
||||
|
||||
Reference in New Issue
Block a user