From 9118485425cfc69286eafcd118ef28e664bc78d5 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Fri, 8 Jun 2007 21:31:25 +0000 Subject: [PATCH] Monotone-Parent: c35b4b523a503d3e04dc1985bf5db52acbdcf780 Monotone-Revision: 57a26c9e222f5e19886a35f7447badd73dccb65c Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2007-06-08T21:31:25 Monotone-Branch: ca.inverse.sogo --- UI/WebServerResources/SchedulerUI.js | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/UI/WebServerResources/SchedulerUI.js b/UI/WebServerResources/SchedulerUI.js index 8e0231cc7..914563e19 100644 --- a/UI/WebServerResources/SchedulerUI.js +++ b/UI/WebServerResources/SchedulerUI.js @@ -240,7 +240,7 @@ function onDaySelect(node) { var needRefresh = (listFilter == 'view_selectedday' && day != currentDay); - var td = node.getParentWithTagName("td"); + var td = $(node).getParentWithTagName("td"); var table = td.getParentWithTagName("table"); // log ("table.selected: " + table.selected); @@ -333,26 +333,22 @@ function eventsListCallback(http) { var td = document.createElement("td"); row.appendChild(td); - Event.observe(td, "mousedown", - listRowMouseDownHandler.bindAsEventListener(td), true); + Event.observe(td, "mousedown", listRowMouseDownHandler, true); td.appendChild(document.createTextNode(data[i][3])); td = document.createElement("td"); row.appendChild(td); - Event.observe(td, "mousedown", - listRowMouseDownHandler.bindAsEventListener(td), true); + Event.observe(td, "mousedown", listRowMouseDownHandler, true); td.appendChild(document.createTextNode(data[i][4])); td = document.createElement("td"); row.appendChild(td); - Event.observe(td, "mousedown", - listRowMouseDownHandler.bindAsEventListener(td), true); + Event.observe(td, "mousedown", listRowMouseDownHandler, true); td.appendChild(document.createTextNode(data[i][5])); td = document.createElement("td"); row.appendChild(td); - Event.observe(td, "mousedown", - listRowMouseDownHandler.bindAsEventListener(td), true); + Event.observe(td, "mousedown", listRowMouseDownHandler, true); td.appendChild(document.createTextNode(data[i][6])); } } @@ -1220,7 +1216,7 @@ function configureLists() { onTasksSelectionChange.bindAsEventListener(list)); var input = $("showHideCompletedTasks"); - Event.observe(input, "change", + Event.observe(input, "click", onShowCompletedTasks.bindAsEventListener(input)); list = $("eventsList");