Monotone-Parent: 481fe3d5a9c50bc134e3db63b08e84fc0a7456fd

Monotone-Revision: a9a815362cf2b8cfa777d0a89799463ee2302535

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2007-11-02T18:18:15
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2007-11-02 18:18:15 +00:00
parent 8c3088aba5
commit ce394c512d

View File

@@ -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);
}
}
}