From 9153afd7f11b646b387de694536d6a3417688058 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Fri, 27 Aug 2010 15:14:03 +0000 Subject: [PATCH] Monotone-Parent: babfea6e4a86c3a35dca2f890f5274a718b07250 Monotone-Revision: 25abdbcb35808945aa88d8503c67e9f53776cf62 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-08-27T15:14:03 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 4 ++++ UI/WebServerResources/UIxPreferences.js | 9 ++------- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index de9437bd4..c5d4c5805 100644 --- a/ChangeLog +++ b/ChangeLog @@ -13,6 +13,10 @@ (setupMailboxesFromJSON): new method, created due the same issue as above, that enables the creation of an array from the response received by the filter editing window. + (updateSieveFilterRow): we avoid removing the activation cb since + further update event would no longer be taken into account. + However we reset its "checked" status to the activation status of + the updated filter. 2010-08-26 Wolfgang Sourdeau diff --git a/UI/WebServerResources/UIxPreferences.js b/UI/WebServerResources/UIxPreferences.js index 58d9e7297..61beb4996 100644 --- a/UI/WebServerResources/UIxPreferences.js +++ b/UI/WebServerResources/UIxPreferences.js @@ -226,13 +226,8 @@ function updateSieveFilterRow(filterTable, number, filter) { nameColumn.appendChild(document.createTextNode(filter.name)); var activeColumn = columns[1]; - while (activeColumn.firstChild) { - activeColumn.removeChild(activeColumn.firstChild); - } - createElement("input", null, "checkBox", - { checked: filter.active, - type: "checkbox" }, - null, activeColumn); + var cb = activeColumn.childNodesWithTag("input"); + cb[0].checked = filter.active; } function _editFilter(filterId) {