mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-08 06:48:51 +00:00
Monotone-Parent: e882dd493394b515a79fea37ddd165ef2da04de0
Monotone-Revision: d7355e980d99c04e1e5eb5def96cba208b810cd2 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-03-29T18:04:41 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
2007-03-29 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* UI/WebServerResources/UIxMailEditor.js: moved previous generic
|
||||
method "onContactAdd" here since the Mailer is now the only module
|
||||
to use it when composing emails.
|
||||
|
||||
* UI/WebServerResources/generic.js: added code for handling the
|
||||
new scheme used for describing SOGo folders, common code to handle
|
||||
folder addition or removal.
|
||||
|
||||
@@ -1,5 +1,24 @@
|
||||
var contactSelectorAction = 'mailer-contacts';
|
||||
|
||||
function onContactAdd() {
|
||||
var selector = null;
|
||||
var selectorURL = '?popup=YES&selectorId=mailer-contacts';
|
||||
|
||||
urlstr = ApplicationBaseURL;
|
||||
if (urlstr[urlstr.length-1] != '/')
|
||||
urlstr += '/';
|
||||
urlstr += ("../../" + UserLogin + "/Contacts/"
|
||||
+ contactSelectorAction + selectorURL);
|
||||
// log (urlstr);
|
||||
var w = window.open(urlstr, "Addressbook",
|
||||
"width=640,height=400,resizable=1,scrollbars=0");
|
||||
w.selector = selector;
|
||||
w.opener = this;
|
||||
w.focus();
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function addContact(tag, fullContactName, contactId, contactName, contactEmail) {
|
||||
if (!mailIsRecipient(contactEmail)) {
|
||||
var neededOptionValue = 0;
|
||||
|
||||
Reference in New Issue
Block a user