mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-30 02:37:16 +00:00
Monotone-Parent: 1159908dc1415c3892d49b916e424c7360c2d205
Monotone-Revision: fd0f517e16d123b59c1eef87df8ba3ec2fe3fa56 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-03-21T14:29:09 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,119 +1,120 @@
|
|||||||
<?xml version='1.0' standalone='yes'?>
|
<?xml version='1.0' standalone='yes'?>
|
||||||
<var:component
|
<!DOCTYPE var:component>
|
||||||
xmlns="http://www.w3.org/1999/xhtml"
|
<var:component
|
||||||
xmlns:var="http://www.skyrix.com/od/binding"
|
xmlns="http://www.w3.org/1999/xhtml"
|
||||||
xmlns:const="http://www.skyrix.com/od/constant"
|
xmlns:var="http://www.skyrix.com/od/binding"
|
||||||
xmlns:uix="OGo:uix"
|
xmlns:const="http://www.skyrix.com/od/constant"
|
||||||
xmlns:label="OGo:label"
|
xmlns:uix="OGo:uix"
|
||||||
xmlns:rsrc="OGo:url"
|
xmlns:label="OGo:label"
|
||||||
className="UIxPageFrame"
|
xmlns:rsrc="OGo:url"
|
||||||
title="name"
|
className="UIxPageFrame"
|
||||||
var:popup="isPopup">
|
title="name"
|
||||||
<var:if condition="hideFrame" const:negate="YES">
|
var:popup="isPopup">
|
||||||
<div class="menu" id="contactFoldersMenu">
|
<var:if condition="hideFrame" const:negate="YES">
|
||||||
<ul>
|
<div class="menu" id="contactFoldersMenu">
|
||||||
<li><var:string label:value="Modify" /></li>
|
<ul>
|
||||||
<li id="accessRightsMenuEntry"><var:string label:value="Access Rights..." /></li>
|
<li><var:string label:value="Modify" /></li>
|
||||||
<li class="separator"></li>
|
<li id="accessRightsMenuEntry"><var:string label:value="Access Rights..." /></li>
|
||||||
<li><var:string label:value="New Card" /></li>
|
<li class="separator"></li>
|
||||||
<li><var:string label:value="New List" /></li>
|
<li><var:string label:value="New Card" /></li>
|
||||||
<li class="separator"></li>
|
<li><var:string label:value="New List" /></li>
|
||||||
<li><var:string label:value="Delete" /></li>
|
<li class="separator"></li>
|
||||||
</ul>
|
<li><var:string label:value="Delete" /></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="menu" id="contactMenu">
|
||||||
|
<ul>
|
||||||
|
<li id="modifyContactMenuEntry" onmouseup="return onMenuEditContact(event, this);"><var:string label:value="Modify" /></li>
|
||||||
|
<li class="separator"></li>
|
||||||
|
<li id="writeToContactMenuEntry" onmouseup="return onMenuWriteToContact(event, this);"><var:string label:value="Write" /></li>
|
||||||
|
<li id="imContactMenuEntry"><var:string label:value="Instant Message" /></li>
|
||||||
|
<li class="separator"></li>
|
||||||
|
<li id="deleteContactMenuEntry" onmouseup="return onMenuDeleteContact(event, this);"><var:string label:value="Delete" /></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<form name="searchform" var:href="view" var:_sort="sortKey"
|
||||||
|
onsubmit="return onSearchFormSubmit();" method="GET">
|
||||||
|
<!-- var:if condition="isPopup" const:negate="YES" -->
|
||||||
|
<!-- <var:if condition="hideFolderTree" const:negate="YES" -->
|
||||||
|
<div class="contactFoldersList" id="contactFoldersList">
|
||||||
|
<div class="titlediv"
|
||||||
|
><var:string label:value="Address Books"
|
||||||
|
/></div>
|
||||||
|
<!-- var:if var:condition="isPopup" const:negate="YES" -->
|
||||||
|
<div class="toolbar" id="abToolbar">
|
||||||
|
<a href="#" class="toolbarButton"
|
||||||
|
><span class="toolbarButton"
|
||||||
|
><img rsrc:src="add-addressbook.png" label:title="New Addressbook..."
|
||||||
|
/></span></a
|
||||||
|
><a href="#" class="toolbarButton"
|
||||||
|
><span class="toolbarButton"
|
||||||
|
><img rsrc:src="add-user-addressbook.png" label:title="Subscribe to an Addressbook..."
|
||||||
|
/></span></a
|
||||||
|
><a href="#" class="toolbarButton"
|
||||||
|
><span class="toolbarButton"
|
||||||
|
><img rsrc:src="remove-addressbook.png" label:title="Remove the selected Addressbook"
|
||||||
|
/></span></a
|
||||||
|
></div><!-- var:if -->
|
||||||
|
|
||||||
|
<ul id="contactFolders"
|
||||||
|
var:additional-addressbooks="additionalAddressBooks">
|
||||||
|
<var:foreach list="contactFolders" item="currentFolder"
|
||||||
|
><var:if condition="isFolderCurrent"
|
||||||
|
><li var:id="currentContactFolderId" class="_selected"
|
||||||
|
><var:string value="currentContactFolderName" /></li
|
||||||
|
></var:if
|
||||||
|
><var:if condition="isFolderCurrent" const:negate="YES"
|
||||||
|
><li var:id="currentContactFolderId"
|
||||||
|
><var:string value="currentContactFolderName" /></li
|
||||||
|
></var:if>
|
||||||
|
</var:foreach
|
||||||
|
><var:foreach list="additionalFolders"
|
||||||
|
item="currentAdditionalFolder"
|
||||||
|
><li var:id="currentAdditionalFolder"
|
||||||
|
var:external-addressbook="currentAdditionalFolder"
|
||||||
|
><var:string value="currentAdditionalFolder" /></li
|
||||||
|
></var:foreach>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<var:if condition="hasContactSelectionButtons">
|
||||||
|
<div class="contactSelection">
|
||||||
|
<var:component value="selectorComponent" />
|
||||||
|
</div>
|
||||||
|
</var:if>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="menu" id="contactMenu">
|
<div class="dragHandle" id="dragHandle"><!-- space --></div>
|
||||||
<ul>
|
<!-- var:if -->
|
||||||
<li id="modifyContactMenuEntry" onmouseup="return onMenuEditContact(event, this);"><var:string label:value="Modify" /></li>
|
|
||||||
<li class="separator"></li>
|
<div id="rightPanel">
|
||||||
<li id="writeToContactMenuEntry" onmouseup="return onMenuWriteToContact(event, this);"><var:string label:value="Write" /></li>
|
<var:component className="UIxContactsFilterPanel" qualifier="qualifier" />
|
||||||
<li id="imContactMenuEntry"><var:string label:value="Instant Message" /></li>
|
|
||||||
<li class="separator"></li>
|
<div id="contactsListContent">
|
||||||
<li id="deleteContactMenuEntry" onmouseup="return onMenuDeleteContact(event, this);"><var:string label:value="Delete" /></li>
|
<var:component-content />
|
||||||
</ul>
|
</div>
|
||||||
|
|
||||||
|
<div class="dragHandle" id="rightDragHandle"><!-- space --></div>
|
||||||
|
|
||||||
|
<div id="contactView" onmousedown="return false;"
|
||||||
|
></div>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- /var:if> -->
|
||||||
|
|
||||||
<form name="searchform" var:href="view" var:_sort="sortKey"
|
<!-- var:if condition="isPopup">
|
||||||
onsubmit="return onSearchFormSubmit();" method="GET">
|
var:component-content />
|
||||||
<!-- var:if condition="isPopup" const:negate="YES" -->
|
/var:if> -->
|
||||||
<!-- <var:if condition="hideFolderTree" const:negate="YES" -->
|
</form>
|
||||||
<div class="contactFoldersList" id="contactFoldersList">
|
|
||||||
<div class="titlediv"
|
|
||||||
><var:string label:value="Address Books"
|
|
||||||
/></div>
|
|
||||||
<!-- var:if var:condition="isPopup" const:negate="YES" -->
|
|
||||||
<div class="toolbar" id="abToolbar">
|
|
||||||
<a href="#" class="toolbarButton"
|
|
||||||
><span class="toolbarButton"
|
|
||||||
><img rsrc:src="add-addressbook.png" label:title="New Addressbook..."
|
|
||||||
/></span></a
|
|
||||||
><a href="#" class="toolbarButton"
|
|
||||||
><span class="toolbarButton"
|
|
||||||
><img rsrc:src="add-user-addressbook.png" label:title="Subscribe to an Addressbook..."
|
|
||||||
/></span></a
|
|
||||||
><a href="#" class="toolbarButton"
|
|
||||||
><span class="toolbarButton"
|
|
||||||
><img rsrc:src="remove-addressbook.png" label:title="Remove the selected Addressbook"
|
|
||||||
/></span></a
|
|
||||||
></div><!-- var:if -->
|
|
||||||
|
|
||||||
<ul id="contactFolders"
|
<var:string value="errorAlertJavaScript" const:escapeHTML="NO" />
|
||||||
var:additional-addressbooks="additionalAddressBooks">
|
</var:if>
|
||||||
<var:foreach list="contactFolders" item="currentFolder"
|
|
||||||
><var:if condition="isFolderCurrent"
|
|
||||||
><li var:id="currentContactFolderId" class="_selected"
|
|
||||||
><var:string value="currentContactFolderName" /></li
|
|
||||||
></var:if
|
|
||||||
><var:if condition="isFolderCurrent" const:negate="YES"
|
|
||||||
><li var:id="currentContactFolderId"
|
|
||||||
><var:string value="currentContactFolderName" /></li
|
|
||||||
></var:if>
|
|
||||||
</var:foreach
|
|
||||||
><var:foreach list="additionalFolders"
|
|
||||||
item="currentAdditionalFolder"
|
|
||||||
><li var:id="currentAdditionalFolder"
|
|
||||||
var:external-addressbook="currentAdditionalFolder"
|
|
||||||
><var:string value="currentAdditionalFolder" /></li
|
|
||||||
></var:foreach>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<var:if condition="hasContactSelectionButtons">
|
<var:if condition="hideFrame">
|
||||||
<div class="contactSelection">
|
<var:component-content />
|
||||||
<var:component value="selectorComponent" />
|
</var:if>
|
||||||
</div>
|
|
||||||
</var:if>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="dragHandle" id="dragHandle"><!-- space --></div>
|
<script type="text/javascript">
|
||||||
<!-- var:if -->
|
currentContactFolder = '<var:string value="contactFolderId" />';
|
||||||
|
</script>
|
||||||
<div id="rightPanel">
|
</var:component>
|
||||||
<var:component className="UIxContactsFilterPanel" qualifier="qualifier" />
|
|
||||||
|
|
||||||
<div id="contactsListContent">
|
|
||||||
<var:component-content />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="dragHandle" id="rightDragHandle"><!-- space --></div>
|
|
||||||
|
|
||||||
<div id="contactView" onmousedown="return false;"
|
|
||||||
></div>
|
|
||||||
</div>
|
|
||||||
<!-- /var:if> -->
|
|
||||||
|
|
||||||
<!-- var:if condition="isPopup">
|
|
||||||
var:component-content />
|
|
||||||
/var:if> -->
|
|
||||||
</form>
|
|
||||||
|
|
||||||
<var:string value="errorAlertJavaScript" const:escapeHTML="NO" />
|
|
||||||
</var:if>
|
|
||||||
|
|
||||||
<var:if condition="hideFrame">
|
|
||||||
<var:component-content />
|
|
||||||
</var:if>
|
|
||||||
|
|
||||||
<script type="text/javascript">
|
|
||||||
currentContactFolder = '<var:string value="contactFolderId" />';
|
|
||||||
</script>
|
|
||||||
</var:component>
|
|
||||||
|
|||||||
@@ -648,16 +648,55 @@ function onAddressBookRemove(event) {
|
|||||||
var newValues = initialValues.replace(re, "");
|
var newValues = initialValues.replace(re, "");
|
||||||
if (initialValues != newValues)
|
if (initialValues != newValues)
|
||||||
setAdditionalAddressBooks(newValues);
|
setAdditionalAddressBooks(newValues);
|
||||||
|
|
||||||
var personal = $("/personal");
|
|
||||||
personal.select();
|
|
||||||
onFolderSelectionChange();
|
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
nodes[0].deselect();
|
||||||
|
var folderId = nodes[0].getAttribute("id").substr(1);
|
||||||
|
deletePersonalAddressBook(folderId);
|
||||||
|
}
|
||||||
|
|
||||||
|
var personal = $("/personal");
|
||||||
|
personal.select();
|
||||||
|
onFolderSelectionChange();
|
||||||
}
|
}
|
||||||
|
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function deletePersonalAddressBook(folderId) {
|
||||||
|
if (document.deletePersonalABAjaxRequest) {
|
||||||
|
document.deletePersonalABAjaxRequest.aborted = true;
|
||||||
|
document.deletePersonalABAjaxRequest.abort();
|
||||||
|
}
|
||||||
|
var url = ApplicationBaseURL + "/" + folderId + "/delete";
|
||||||
|
document.deletePersonalABAjaxRequest
|
||||||
|
= triggerAjaxRequest(url, deletePersonalAddressBookCallback, folderId);
|
||||||
|
}
|
||||||
|
|
||||||
|
function deletePersonalAddressBookCallback(http) {
|
||||||
|
if (http.readyState == 4) {
|
||||||
|
if (http.status == 200) {
|
||||||
|
var ul = $("contactFolders");
|
||||||
|
|
||||||
|
var children = ul.childNodesWithTag("li");
|
||||||
|
var i = 0;
|
||||||
|
var done = false;
|
||||||
|
while (!done && i < children.length) {
|
||||||
|
var currentFolderId = children[i].getAttribute("id").substr(1);
|
||||||
|
if (currentFolderId == http.callbackData) {
|
||||||
|
ul.removeChild(children[i]);
|
||||||
|
done = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
i++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
document.deletePersonalABAjaxRequest = null;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
log ("ajax fuckage");
|
||||||
|
}
|
||||||
|
|
||||||
function configureDragHandles() {
|
function configureDragHandles() {
|
||||||
var handle = $("dragHandle");
|
var handle = $("dragHandle");
|
||||||
if (handle) {
|
if (handle) {
|
||||||
|
|||||||
Reference in New Issue
Block a user