From ce394c512d3cba36f208efc2a4df311f106a9e03 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Fri, 2 Nov 2007 18:18:15 +0000 Subject: [PATCH] Monotone-Parent: 481fe3d5a9c50bc134e3db63b08e84fc0a7456fd Monotone-Revision: a9a815362cf2b8cfa777d0a89799463ee2302535 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2007-11-02T18:18:15 Monotone-Branch: ca.inverse.sogo --- UI/WebServerResources/UIxMailEditor.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/UI/WebServerResources/UIxMailEditor.js b/UI/WebServerResources/UIxMailEditor.js index 080528170..2c8b26b77 100644 --- a/UI/WebServerResources/UIxMailEditor.js +++ b/UI/WebServerResources/UIxMailEditor.js @@ -30,7 +30,7 @@ function addContact(tag, fullContactName, contactId, contactName, contactEmail) var counter = 0; var currentRow = $('row_' + counter); while (currentRow && !stop) { - var currentValue = $(currentRow.childNodesWithTag("span")[1]).childNodesWithTag("input")[0].value; + var currentValue = $(currentRow.childNodesWithTag("td")[1]).childNodesWithTag("input")[0].value; if (currentValue == neededOptionValue) { stop = true; insertContact($("addr_" + counter), contactName, contactEmail); @@ -41,9 +41,10 @@ function addContact(tag, fullContactName, contactId, contactName, contactEmail) if (!stop) { fancyAddRow(false, ""); - $("row_" + counter).childNodesWithTag("span")[0].childNodesWithTag("select")[0].value + $($("row_" + counter).childNodesWithTag("td")[0]).childNodesWithTag("select")[0].value = neededOptionValue; insertContact($("addr_" + counter), contactName, contactEmail); + onWindowResize(null); } } }