mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-09-24 06:30:32 +00:00
Calendar Import
Monotone-Parent: 1e66868696d71db915497bde02848e689ed48c7a Monotone-Revision: 49714b85ec1539aa299cf3397138aa2bd21086cb Monotone-Author: crobert@inverse.ca Monotone-Date: 2009-09-02T19:14:15 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -291,39 +291,46 @@ TABLE#eventsList TH
|
||||
TABLE#eventsList TH
|
||||
{ white-space: pre; }
|
||||
|
||||
DIV#eventDialog
|
||||
DIV#uploadDialog
|
||||
{ border-width: 1px;
|
||||
width: 260px;
|
||||
height: 118px;
|
||||
}
|
||||
|
||||
DIV.dialog
|
||||
{ position: absolute;
|
||||
top: 100px;
|
||||
left: 75px;
|
||||
width: 200px;
|
||||
z-index: 50; }
|
||||
|
||||
DIV#eventDialog DIV
|
||||
DIV.dialog DIV
|
||||
{ border: 1px solid #444;
|
||||
/*height: 100px;*/
|
||||
background-color: #fff;
|
||||
padding: 5px; }
|
||||
|
||||
DIV#eventDialog.left
|
||||
DIV.dialog.left
|
||||
{ background-image: url("dialog-left.png");
|
||||
background-repeat: no-repeat;
|
||||
background-position: top left; }
|
||||
|
||||
DIV#eventDialog.left DIV
|
||||
DIV.dialog.left DIV
|
||||
{ border-left: 0;
|
||||
margin-left: 19px;
|
||||
text-align: left; }
|
||||
|
||||
DIV#eventDialog.right
|
||||
DIV.dialog.right
|
||||
{ background-image: url("dialog-right.png");
|
||||
background-repeat: no-repeat;
|
||||
background-position: top right; }
|
||||
|
||||
DIV#eventDialog.right DIV
|
||||
DIV.dialog.right DIV
|
||||
{ border-right: 0;
|
||||
margin-right: 19px;
|
||||
text-align: right; }
|
||||
|
||||
DIV#eventDialog
|
||||
{ width: 200px; }
|
||||
DIV#eventDialog H1,
|
||||
DIV#eventDialog P
|
||||
{ font-size: 10px;
|
||||
|
||||
@@ -1738,8 +1738,8 @@ function getMenus() {
|
||||
menus["calendarsMenu"] = new Array(onCalendarModify,
|
||||
"-",
|
||||
onCalendarNew, onCalendarRemove,
|
||||
"-", onCalendarExport, null, "-",
|
||||
null, "-", onMenuSharing);
|
||||
"-", onCalendarExport, onCalendarImport,
|
||||
null, "-", null, "-", onMenuSharing);
|
||||
menus["searchMenu"] = new Array(setSearchCriteria);
|
||||
|
||||
menus["tasksListMenu"] = new Array (editEvent, newTask, "-",
|
||||
@@ -1889,6 +1889,35 @@ function onCalendarExport(event) {
|
||||
}
|
||||
}
|
||||
|
||||
function onCalendarImport(event) {
|
||||
var node = $("calendarList").getSelectedNodes().first();
|
||||
var folderId = node.getAttribute("id");
|
||||
|
||||
var url = ApplicationBaseURL + folderId + "/import";
|
||||
$("uploadForm").action = url;
|
||||
$("uploadCancel").onclick = hideCalendarImport;
|
||||
$("calendarFile").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 hideCalendarImport () {
|
||||
$("uploadDialog").style.display = "none";
|
||||
}
|
||||
function validateUploadForm () {
|
||||
rc = false;
|
||||
if ($("calendarFile").value.length)
|
||||
rc = true;
|
||||
return rc;
|
||||
}
|
||||
|
||||
function setEventsOnCalendar(checkBox, li) {
|
||||
li.observe("mousedown", listRowMouseDownHandler);
|
||||
li.observe("selectstart", listRowMouseDownHandler);
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 456 B After Width: | Height: | Size: 2.8 KiB |
Reference in New Issue
Block a user