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) {