mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-04 19:15:27 +00:00
Import completed
Monotone-Parent: 3ea392b157dc9573c7f8219aa7296cf845c3b081 Monotone-Revision: 80ad9ff70fe3d4130d99bbd2590349b71c85b9f3 Monotone-Author: crobert@inverse.ca Monotone-Date: 2009-09-03T14:18:13 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -655,6 +655,35 @@ function onFolderUnsubscribeCB(folderId) {
|
||||
onFolderSelectionChange();
|
||||
}
|
||||
|
||||
function onAddressBookImport(event) {
|
||||
var node = $("contactFolders").getSelectedNodes().first();
|
||||
var folderId = node.getAttribute("id");
|
||||
|
||||
var url = ApplicationBaseURL + folderId + "/import";
|
||||
$("uploadForm").action = url;
|
||||
$("uploadCancel").onclick = hideContactsImport;
|
||||
$("contactsFile").value = "";
|
||||
|
||||
var cellPosition = node.cumulativeOffset();
|
||||
var cellDimensions = node.getDimensions();
|
||||
var left = cellDimensions['width'] - 20;
|
||||
var top = cellPosition[1];
|
||||
|
||||
var div = $("uploadDialog");
|
||||
div.style.top = top + "px";
|
||||
div.style.left = left + "px";
|
||||
div.style.display = "block";
|
||||
}
|
||||
function hideContactsImport () {
|
||||
$("uploadDialog").style.display = "none";
|
||||
}
|
||||
function validateUploadForm () {
|
||||
rc = false;
|
||||
if ($("contactsFile").value.length)
|
||||
rc = true;
|
||||
return rc;
|
||||
}
|
||||
|
||||
function onAddressBookRemove(event) {
|
||||
var selector = $("contactFolders");
|
||||
var nodes = selector.getSelectedNodes();
|
||||
@@ -986,7 +1015,8 @@ function onContactMenuPrepareVisibility() {
|
||||
function getMenus() {
|
||||
var menus = {};
|
||||
menus["contactFoldersMenu"] = new Array(onAddressBookModify, "-", newContact,
|
||||
null, "-", onAddressBookRemove, "-",
|
||||
null, "-", onAddressBookImport,
|
||||
onAddressBookRemove, "-",
|
||||
onMenuSharing);
|
||||
menus["contactMenu"] = new Array(onMenuEditContact, "-",
|
||||
onMenuWriteToContact, onMenuAIMContact,
|
||||
|
||||
@@ -291,44 +291,6 @@ TABLE#eventsList TH
|
||||
TABLE#eventsList TH
|
||||
{ white-space: pre; }
|
||||
|
||||
DIV#uploadDialog
|
||||
{ border-width: 1px;
|
||||
width: 260px;
|
||||
height: 118px;
|
||||
}
|
||||
|
||||
DIV.dialog
|
||||
{ position: absolute;
|
||||
top: 100px;
|
||||
left: 75px;
|
||||
z-index: 50; }
|
||||
|
||||
DIV.dialog DIV
|
||||
{ border: 1px solid #444;
|
||||
/*height: 100px;*/
|
||||
background-color: #fff;
|
||||
padding: 5px; }
|
||||
|
||||
DIV.dialog.left
|
||||
{ background-image: url("dialog-left.png");
|
||||
background-repeat: no-repeat;
|
||||
background-position: top left; }
|
||||
|
||||
DIV.dialog.left DIV
|
||||
{ border-left: 0;
|
||||
margin-left: 19px;
|
||||
text-align: left; }
|
||||
|
||||
DIV.dialog.right
|
||||
{ background-image: url("dialog-right.png");
|
||||
background-repeat: no-repeat;
|
||||
background-position: top right; }
|
||||
|
||||
DIV.dialog.right DIV
|
||||
{ border-right: 0;
|
||||
margin-right: 19px;
|
||||
text-align: right; }
|
||||
|
||||
DIV#eventDialog
|
||||
{ width: 200px; }
|
||||
DIV#eventDialog H1,
|
||||
|
||||
@@ -782,3 +782,41 @@ DIV.resize-handle
|
||||
background-color: #f0f0f0 !important;
|
||||
color: #000000 !important;
|
||||
}
|
||||
|
||||
DIV#uploadDialog
|
||||
{ border-width: 1px;
|
||||
width: 260px;
|
||||
height: 118px;
|
||||
}
|
||||
|
||||
DIV.dialog
|
||||
{ position: absolute;
|
||||
top: 100px;
|
||||
left: 75px;
|
||||
z-index: 50; }
|
||||
|
||||
DIV.dialog DIV
|
||||
{ border: 1px solid #444;
|
||||
/*height: 100px;*/
|
||||
background-color: #fff;
|
||||
padding: 5px; }
|
||||
|
||||
DIV.dialog.left
|
||||
{ background-image: url("dialog-left.png");
|
||||
background-repeat: no-repeat;
|
||||
background-position: top left; }
|
||||
|
||||
DIV.dialog.left DIV
|
||||
{ border-left: 0;
|
||||
margin-left: 19px;
|
||||
text-align: left; }
|
||||
|
||||
DIV.dialog.right
|
||||
{ background-image: url("dialog-right.png");
|
||||
background-repeat: no-repeat;
|
||||
background-position: top right; }
|
||||
|
||||
DIV.dialog.right DIV
|
||||
{ border-right: 0;
|
||||
margin-right: 19px;
|
||||
text-align: right; }
|
||||
|
||||
Reference in New Issue
Block a user