mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-09 18:35:10 +00:00
applied comments
This commit is contained in:
@@ -464,9 +464,11 @@ DIV.eventView
|
||||
/* new draggable presentation */
|
||||
|
||||
DIV#daysView DIV.hours
|
||||
{ position: absolute;
|
||||
{ display: inline-block;
|
||||
position: relative;
|
||||
float: left;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
left: 0;
|
||||
height: 960px;
|
||||
width: 50px; }
|
||||
|
||||
@@ -484,6 +486,9 @@ DIV#daysView DIV.hour
|
||||
|
||||
DIV#daysView DIV.days
|
||||
{ position: relative;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
margin-left: 50px; }
|
||||
|
||||
DIV.multicolumnDayView DIV.lastDayUser
|
||||
@@ -684,8 +689,7 @@ DIV.daysViewFor7Days DIV.day5
|
||||
|
||||
DIV.monthView DIV.day6,
|
||||
DIV.daysViewFor7Days DIV.day6
|
||||
{ left: 85.7142%;
|
||||
border-right: 1px solid #909090; }
|
||||
{ left: 85.7142%; }
|
||||
|
||||
/* "left" and "width" for #daysView DIV.event are computed in JS code */
|
||||
#daysView DIV.event
|
||||
|
||||
@@ -40,6 +40,10 @@ INPUT#inputFieldTitle {
|
||||
width:120px;
|
||||
}
|
||||
|
||||
DIV#rightFrameTitle
|
||||
{
|
||||
font-size:20px;
|
||||
}
|
||||
|
||||
/******************************/
|
||||
/****** What to print ********/
|
||||
@@ -139,41 +143,32 @@ DIV#calendarHeader {
|
||||
position:relative;
|
||||
top:0;
|
||||
height:70px;
|
||||
right: 0px;
|
||||
}
|
||||
|
||||
DIV#calendarHeader DIV.dayLabels {
|
||||
DIV#calendarHeader DIV.dayLabels,
|
||||
DIV#calendarHeader DIV.days {
|
||||
position:relative;
|
||||
display:flex;
|
||||
left:0;
|
||||
left: 0;
|
||||
margin-left:50px;
|
||||
}
|
||||
|
||||
DIV#calendarHeader DIV.days {
|
||||
position:relative;
|
||||
display: -webkit-box;
|
||||
display: -moz-box;
|
||||
display: -ms-flexbox;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
top:0;
|
||||
height:33px;
|
||||
left:0;
|
||||
margin-left:50px;
|
||||
top: 0;
|
||||
height: 33px;
|
||||
left: 0;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
DIV#daysView {
|
||||
position:relative;
|
||||
top:0;
|
||||
display:inline-table;
|
||||
width:100%;
|
||||
position: relative;
|
||||
top: 0;
|
||||
right: 8px;
|
||||
border-right: 1px solid #ccc;
|
||||
}
|
||||
|
||||
DIV#daysView DIV.days {
|
||||
display: -webkit-box;
|
||||
display: -moz-box;
|
||||
display: -ms-flexbox;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
DIV#daysView DIV.hours {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
DIV#daysView DIV.day DIV.clickableHourCell {
|
||||
@@ -184,18 +179,7 @@ DIV#daysView DIV.hour {
|
||||
height: 27px;
|
||||
}
|
||||
.minutes15, .minutes30, .minutes45 {
|
||||
height:25%;
|
||||
}
|
||||
|
||||
DIV#daysView DIV.day0,
|
||||
DIV#daysView DIV.day1,
|
||||
DIV#daysView DIV.day2,
|
||||
DIV#daysView DIV.day3,
|
||||
DIV#daysView DIV.day4,
|
||||
DIV#daysView DIV.day5,
|
||||
DIV#daysView DIV.day6 {
|
||||
position:relative;
|
||||
left:0;
|
||||
height: 25%;
|
||||
}
|
||||
|
||||
DIV.event{
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
|
||||
/******************************** Global variables *******************************************/
|
||||
var firstDayOfWeek = window.opener.firstDayOfWeek;
|
||||
var displayTime=true;
|
||||
var printCompletedTasks=1;
|
||||
var printNoDueDateTasks=1;
|
||||
var eventsBlocks;
|
||||
@@ -31,14 +30,6 @@ var currentView;
|
||||
var currentDay = window.parentvar("currentDay");
|
||||
var sd, ed;
|
||||
|
||||
/******************************************* Ajust Window position from its size ***********************************************************/
|
||||
|
||||
function ajustWindow(width, height) {
|
||||
var left = (screen.width/2)-(width/2);
|
||||
var top = (screen.height/2)-(height/2);
|
||||
window.moveTo(left, top);
|
||||
}
|
||||
|
||||
/****************************************** Ajax Requests, callbacks & events/tasks drawings ***************************************************/
|
||||
|
||||
function refreshContent() {
|
||||
@@ -244,7 +235,7 @@ function _drawTasksList(tasksBlocks) {
|
||||
$("rightFrameTasks").innerHTML = tasksList;
|
||||
}
|
||||
|
||||
// TODO : Maybe use the drawfunction from the scheduler.js
|
||||
// TODO : Maybe use the drawfunction from the schedulerUI.js
|
||||
|
||||
function _drawEvents(events, eventsData) {
|
||||
var daysView = $("daysView");
|
||||
@@ -403,10 +394,7 @@ function _parseEvent(event) {
|
||||
var endDate = new Date(event[6] *1000);
|
||||
parsedEvent = "<div class=divEventsPreview><table>";
|
||||
parsedEvent += "<tr><td><b>"+ event[4] +"</b></td></tr>";
|
||||
if (displayTime)
|
||||
parsedEvent += "<tr><td>"+ startDate.toLocaleString() + " - " + endDate.toLocaleString() + "</td></tr>";
|
||||
else
|
||||
parsedEvent += "<tr><td>"+ startDate.toGMTString() + "<br />" + endDate.toGMTString() + "</td></tr>";
|
||||
parsedEvent += "<tr><td>"+ startDate.toLocaleString() + " - " + endDate.toLocaleString() + "</td></tr>";
|
||||
parsedEvent += "<tr><td><var:string label:value='Calendar: ' />" + event[2] + "</td></tr>";
|
||||
parsedEvent += "</table></div>";
|
||||
return parsedEvent;
|
||||
@@ -427,10 +415,7 @@ function _parseTask(task) {
|
||||
|
||||
if (task[5] != null) {
|
||||
dueDate = new Date(task[5] *1000);
|
||||
if (displayTime)
|
||||
parsedTask += "<tr><td class=\"EventsTasksDate\">"+ dueDate.toLocaleString() + "</td></tr>";
|
||||
else
|
||||
parsedTask += "<tr><td class=\"EventsTasksDate\">"+ dueDate.toGMTString() + "</td></tr>";
|
||||
parsedTask += "<tr><td class=\"EventsTasksDate\">"+ dueDate.toLocaleString() + "</td></tr>";
|
||||
}
|
||||
parsedTask += "<tr><td><var:string label:value='Calendar: ' />" + task[2] + "</td></tr>";
|
||||
parsedTask += "</table></div>";
|
||||
@@ -510,19 +495,16 @@ function onPrintLayoutListChange() {
|
||||
switch(selectedLayout) {
|
||||
case "0": // List view
|
||||
window.resizeTo(660,500);
|
||||
ajustWindow(660,500);
|
||||
currentView = parentView;
|
||||
break;
|
||||
|
||||
case "1": // Day view
|
||||
window.resizeTo(1010,500);
|
||||
ajustWindow(1010,500);
|
||||
currentView = "dayview";
|
||||
break;
|
||||
|
||||
case "2": // Week view
|
||||
window.resizeTo(1010,500);
|
||||
ajustWindow(1010,500);
|
||||
currentView = "weekview";
|
||||
break;
|
||||
|
||||
@@ -550,19 +532,13 @@ function onTasksCheck(checkBox) {
|
||||
document.getElementById("rightFrameTasks").style.display = 'none';
|
||||
}
|
||||
|
||||
function onPrintDateCheck() {
|
||||
/*function onPrintDateCheck() {
|
||||
var dateRange = document.getElementsByName("dateRange");
|
||||
var customDate = document.getElementById("customDate");
|
||||
for (var i = 0; i < dateRange.length; i++)
|
||||
if (dateRange[i].children[1].children[0].disabled == customDate.checked)
|
||||
dateRange[i].children[1].children[0].disabled = !customDate.checked;
|
||||
}
|
||||
|
||||
function onDisplayTimeFormatCheck(){
|
||||
var radioTimeFormat = document.getElementsByName("printTimeFormat");
|
||||
displayTime = (radioTimeFormat[0].checked ? true : false);
|
||||
refreshContent();
|
||||
}
|
||||
}*/
|
||||
|
||||
function onPrintCompletedTasksCheck(checkBox) {
|
||||
printCompletedTasks = (checkBox.checked ? 1 : 0);
|
||||
@@ -574,7 +550,7 @@ function onPrintNoDueDateTasksCheck(checkBox) {
|
||||
refreshTasks();
|
||||
}
|
||||
|
||||
/************** Date picker functions *************/
|
||||
/************** Date picker functions *************
|
||||
this.initTimeWidgets = function (widgets) {
|
||||
this.timeWidgets = widgets;
|
||||
|
||||
@@ -583,13 +559,13 @@ this.initTimeWidgets = function (widgets) {
|
||||
|
||||
//jQuery(widgets['start']['date']).change(onAdjustTime);
|
||||
|
||||
/*jQuery(widgets['startingDate']['date']).closest('.date').datepicker({autoclose: true,
|
||||
jQuery(widgets['startingDate']['date']).closest('.date').datepicker({autoclose: true,
|
||||
weekStart: 0,
|
||||
endDate: lastDay,
|
||||
startDate: firstDay,
|
||||
setStartDate: lastDay,
|
||||
startView: 2,
|
||||
position: "below-shifted-left"});*/
|
||||
position: "below-shifted-left"});
|
||||
}
|
||||
|
||||
this.onAdjustTime = function(event) {
|
||||
@@ -597,9 +573,9 @@ this.onAdjustTime = function(event) {
|
||||
}
|
||||
|
||||
this.onAdjustDueTime = function(event) {
|
||||
/*var dateDelta = (window.getStartDate().valueOf() - window.getShadowStartDate().valueOf());
|
||||
var dateDelta = (window.getStartDate().valueOf() - window.getShadowStartDate().valueOf());
|
||||
var newDueDate = new Date(window.getDueDate().valueOf() + dateDelta);
|
||||
window.setDueDate(newDueDate);*/
|
||||
window.setDueDate(newDueDate);
|
||||
|
||||
window.timeWidgets['start']['date'].updateShadowValue();
|
||||
}
|
||||
@@ -621,14 +597,14 @@ function onPrintClick(event) {
|
||||
function init() {
|
||||
|
||||
initializePrintSettings();
|
||||
initializeWhatToPrint();
|
||||
//initializeWhatToPrint();
|
||||
//initializeOptions();
|
||||
$("cancelButton").observe("click", onPrintCancelClick);
|
||||
$("printButton").observe("click", onPrintClick);
|
||||
|
||||
// TODO : Selected and custom date must be implemented and finished.
|
||||
/* TODO : Selected and custom date must be implemented and finished.
|
||||
document.getElementById("eventsTasks").disabled=true;
|
||||
document.getElementById("customDate").disabled=true;
|
||||
document.getElementById("customDate").disabled=true;*/
|
||||
|
||||
onPrintLayoutListChange();
|
||||
}
|
||||
@@ -638,13 +614,13 @@ function initializePrintSettings() {
|
||||
$("printLayoutList").observe("change", onPrintLayoutListChange);
|
||||
}
|
||||
|
||||
function initializeWhatToPrint() {
|
||||
/*function initializeWhatToPrint() {
|
||||
var widgets = {'start': {'date': $("startingDate")},
|
||||
'end': {'date': $("endingDate")}};
|
||||
initTimeWidgets(widgets);
|
||||
onPrintDateCheck();
|
||||
|
||||
}
|
||||
}*/
|
||||
|
||||
/*function initializeOptions() {
|
||||
}*/
|
||||
|
||||
Reference in New Issue
Block a user