Monotone-Parent: 90ce7306feefa92f1dc0cb7d38c3530919015bb5

Monotone-Revision: 151b30c115a62428b80f871f09930672bb0b764b

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2009-09-23T14:08:37
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2009-09-23 14:08:37 +00:00
parent f1198fed5e
commit 84c6a108b6
3 changed files with 13 additions and 5 deletions

View File

@ -1,3 +1,11 @@
2009-09-23 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/WebServerResources/SOGoAutoCompletion.js
(SOGoAutoCompletionInterface.onKeyDown): (needs review) we don't
overwrite the input's name attributes with the "uname". Otherwise
the form will not have the correct data when submitted and the
to/cc/bcc fields will be ignored.
2009-09-23 Ludovic Marcotte <lmarcotte@inverse.ca>
* UI/PreferencesUI/UIxPreferences.m

View File

@ -72,7 +72,7 @@ var SOGoAutoCompletionInterface = {
var e = contacts[this.selectedIndex];
this.writeAttribute("card", e.readAttribute("card"));
this.writeAttribute("mail", e.readAttribute("mail"));
this.writeAttribute("name", e.readAttribute("uname"));
this.writeAttribute("uname", e.readAttribute("uname"));
this.writeAttribute("container", e.readAttribute("container"));
}
}
@ -88,7 +88,7 @@ var SOGoAutoCompletionInterface = {
var e = contacts[this.selectedIndex];
this.writeAttribute("card", e.readAttribute("card"));
this.writeAttribute("mail", e.readAttribute("mail"));
this.writeAttribute("name", e.readAttribute("uname"));
this.writeAttribute("uname", e.readAttribute("uname"));
this.writeAttribute("container", e.readAttribute("container"));
}
}
@ -215,7 +215,7 @@ var SOGoAutoCompletionInterface = {
else {
input.writeAttribute("card", contact['c_name']);
input.writeAttribute("mail", contact['c_mail']);
input.writeAttribute("name", contact['c_cn']);
input.writeAttribute("uname", contact['c_cn']);
var completeEmail = contact["c_cn"] + " <" + contact["c_mail"] + ">";
if (contact["c_cn"].substring(0, input.value.length).toUpperCase()
== input.value.toUpperCase())
@ -253,7 +253,7 @@ var SOGoAutoCompletionInterface = {
}
else {
this.writeAttribute("mail", e.readAttribute("mail"));
this.writeAttribute("name", e.readAttribute("uname"));
this.writeAttribute("uname", e.readAttribute("uname"));
}
this.writeAttribute("uid", e.readAttribute("uid"));
this.value = e.readAttribute("address");

View File

@ -93,6 +93,7 @@ function expandContactList (e) {
+ this.readAttribute("card") + "/properties";
triggerAjaxRequest (url, expandContactListCallback, this);
}
function expandContactListCallback (http) {
if (http.readyState == 4) {
var input = http.callbackData;
@ -118,7 +119,6 @@ function expandContactListCallback (http) {
}
}
function addressFieldGotFocus(sender) {
var idx;