mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-04 06:36:24 +00:00
Monotone-Parent: c4392a8d8578caf8d80806e5cb77d1c4ee24ccd7
Monotone-Revision: 985f6c7ac0c60b58fa6e6745ff81be38452afa1e Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2007-12-05T17:07:40 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -140,20 +140,20 @@ function addressFieldLostFocus(sender) {
|
||||
}
|
||||
|
||||
function removeLastEditedRowIfEmpty() {
|
||||
var idx, addr, addressList, senderRow;
|
||||
var addr, addressList, senderRow;
|
||||
|
||||
idx = lastIndex;
|
||||
if (idx == 0) return;
|
||||
addr = $('addr_' + idx);
|
||||
addressList = $("addressList").tBodies[0];
|
||||
|
||||
if (lastIndex == 0 && addressList.childNodes.length <= 2) return;
|
||||
addr = $('addr_' + lastIndex);
|
||||
if (!addr) return;
|
||||
if (addr.value.strip() != '') return;
|
||||
addr = this.findAddressWithIndex(idx);
|
||||
addr = this.findAddressWithIndex(lastIndex);
|
||||
if(addr) {
|
||||
var addresses = $('addr_addresses');
|
||||
addresses.removeChild(addr);
|
||||
}
|
||||
addressList = $("addressList").tBodies[0];
|
||||
senderRow = $("row_" + idx);
|
||||
senderRow = $("row_" + lastIndex);
|
||||
addressList.removeChild(senderRow);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user