mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-23 23:22:45 +00:00
Monotone-Parent: edc1f01e5cb91e7694dd281ec3e06bcfd9a3c5f1
Monotone-Revision: 29276051aae3738adb5fbfa6b52ffbc6eb8f3968 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-08-14T20:31:49 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
2006-08-14 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* UI/WebServerResources/generic.js: added code to manage contact
|
||||
lists through the new implementation of the UIxContactSelector.
|
||||
|
||||
* UI/Templates: put the templates related to SchedulerUI in its
|
||||
own directory.
|
||||
|
||||
|
||||
@@ -478,7 +478,7 @@ function onMenuEntryClick(event, menuId)
|
||||
|
||||
function initLogConsole() {
|
||||
logConsole = document.getElementById('logConsole');
|
||||
logConsole.innerHTML = '';
|
||||
logConsole.innerHTML = '<a style="text-decoration: none; float: right; padding: .5em; background: #aaa; color: #333;" id="logConsoleClose" href="#" onclick="return toggleLogConsole();">X</a>';
|
||||
}
|
||||
|
||||
function toggleLogConsole() {
|
||||
@@ -697,3 +697,49 @@ function dragHandleDoubleClick(event) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* contact selector */
|
||||
|
||||
function onContactSelectorPopup(node)
|
||||
{
|
||||
var contactSelectorId = node.parentNode.getAttribute("id");
|
||||
|
||||
urlstr = ApplicationBaseURL + "../../" + UserLogin + "/Contacts/select?selectorId=" + contactSelectorId;
|
||||
var w = window.open(urlstr, "Addressbook",
|
||||
"width=640,height=400,left=10,top=10,toolbar=no," +
|
||||
"dependent=yes,menubar=no,location=no,resizable=yes," +
|
||||
"scrollbars=yes,directories=no,status=no");
|
||||
w.focus();
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function addContact(selectorId, contactId, contactName)
|
||||
{
|
||||
var uids = document.getElementById('uixselector-' + selectorId
|
||||
+ '-uidList');
|
||||
log ("contactId: " + contactId);
|
||||
if (contactId)
|
||||
{
|
||||
var re = new RegExp("(^|,)" + contactId + "($|,)");
|
||||
|
||||
if (!re.test(uids.value))
|
||||
{
|
||||
log ("no match... realling adding");
|
||||
if (uids.value.length > 0)
|
||||
uids.value += ',' + contactId;
|
||||
else
|
||||
uids.value = contactId;
|
||||
|
||||
log ('values: ' + uids.value);
|
||||
var names = document.getElementById('uixselector-' + selectorId
|
||||
+ '-display');
|
||||
names.innerHTML += ('<img src="' + ResourcesURL + '/abcard.gif" />'
|
||||
+ contactName + '<br />');
|
||||
}
|
||||
else
|
||||
log ("match... ignoring contact");
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user