mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-14 19:31:22 +00:00
Monotone-Parent: 54c85a5614fa048abcccf4fa8fca5d26070fe53f
Monotone-Revision: aff338d65b5e579727f2177355e636b8689e074d Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-10-18T21:53:47 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -87,7 +87,7 @@ function fancyAddRow(shouldEdit, text) {
|
||||
|
||||
addr = $('addr_' + lastIndex);
|
||||
if (addr && addr.value == '') {
|
||||
input = $('compose_subject_input');
|
||||
input = $('subjectField');
|
||||
if (input && input.value != '') {
|
||||
input.focus();
|
||||
input.select();
|
||||
@@ -95,19 +95,20 @@ function fancyAddRow(shouldEdit, text) {
|
||||
}
|
||||
}
|
||||
addressList = $("addressList");
|
||||
lastChild = $('row_last');
|
||||
lastChild = $("lastRow");
|
||||
|
||||
currentIndex++;
|
||||
|
||||
|
||||
proto = $('row_' + lastIndex);
|
||||
row = proto.cloneNode(true);
|
||||
row.id = 'row_' + currentIndex;
|
||||
|
||||
// select popup
|
||||
select = row.childNodes[0].childNodes[0];
|
||||
var rowNodes = row.childNodesWithTag("span");
|
||||
select = rowNodes[0].childNodesWithTag("select")[0];
|
||||
select.name = 'popup_' + currentIndex;
|
||||
select.value = proto.childNodes[0].childNodes[0].value;
|
||||
input = row.childNodes[1];
|
||||
// select.value = row.childNodesWithTag("span")[0].childNodesWithTag("select")[0].value;
|
||||
input = rowNodes[1].childNodesWithTag("input")[0];
|
||||
input.name = 'addr_' + currentIndex;
|
||||
input.id = 'addr_' + currentIndex;
|
||||
input.value = text;
|
||||
|
||||
Reference in New Issue
Block a user