Monotone-Parent: 3628a0085e52c1990e5edce1cb09d581bc96f966

Monotone-Revision: 0d9c665e0f8597c3e8b604fcf9e26ef3593b0c9a

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2008-08-09T10:18:45
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2008-08-09 10:18:45 +00:00
parent 7a8b8c5ead
commit e5327a36f3
5 changed files with 22 additions and 11 deletions

View File

@@ -66,7 +66,7 @@ function fancyAddRow(shouldEdit, text, type) {
currentIndex++;
proto = lastChild.previous("tr");
row = proto.cloneNode(true);
row.setAttribute("id", 'row_' + currentIndex);
row.writeAttribute("id", 'row_' + currentIndex);
// select popup
var rowNodes = row.childNodesWithTag("td");
@@ -81,7 +81,8 @@ function fancyAddRow(shouldEdit, text, type) {
addressList.insertBefore(row, lastChild);
if (shouldEdit) {
input.setAttribute("autocomplete", "off");
input.writeAttribute("autocomplete", "off");
input.stopObserving("keydown", onContactKeydown);
input.observe("keydown", onContactKeydown); // bind listener for address completion
input.focus();
input.select();