merge of '084a7a5ec0ad85b0c967e9425da2b4b789029549'

and '5122dba2cf6d25cecc6935ab5313e950bc38b7a8'

Monotone-Parent: 084a7a5ec0ad85b0c967e9425da2b4b789029549
Monotone-Parent: 5122dba2cf6d25cecc6935ab5313e950bc38b7a8
Monotone-Revision: 99f2e49deefdf8b448f9388104536c94d7581cbd

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2009-07-19T16:41:48
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2009-07-19 16:41:48 +00:00
40 changed files with 1686 additions and 1674 deletions

View File

@@ -1,4 +1,4 @@
/* -*- Mode: java; tab-width: 2; c-tab-always-indent: t; indent-tabs-mode: t; c-basic-offset: 2 -*- */
/* -*- Mode: java; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* JavaScript for SOGoContacts */
var cachedContacts = {};

View File

@@ -1,4 +1,4 @@
/* -*- Mode: java; tab-width: 2; c-tab-always-indent: t; indent-tabs-mode: t; c-basic-offset: 2 -*- */
/* -*- Mode: java; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* custom extensions to the DOM api */
Element.addMethods(

View File

@@ -1,4 +1,4 @@
/* -*- Mode: java; tab-width: 2; c-tab-always-indent: t; indent-tabs-mode: t; c-basic-offset: 2 -*- */
/* -*- Mode: java; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
Form.Element.Methods._replicate = function(element) {
element = $(element);

View File

@@ -1,4 +1,4 @@
/* -*- Mode: java; tab-width: 2; c-tab-always-indent: t; indent-tabs-mode: t; c-basic-offset: 2 -*- */
/* -*- Mode: java; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
Element.addMethods({
getSelectedRows: function(element) {

View File

@@ -1,4 +1,4 @@
/* -*- Mode: java; tab-width: 2; c-tab-always-indent: t; indent-tabs-mode: t; c-basic-offset: 2 -*- */
/* -*- Mode: java; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
//HTMLUListElement.prototype.getSelectedRows = function() {
// return this.getSelectedNodes();

View File

@@ -1,4 +1,4 @@
/* -*- Mode: java; tab-width: 2; c-tab-always-indent: t; indent-tabs-mode: t; c-basic-offset: 2 -*- */
/* -*- Mode: java; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
String.prototype.trim = function() {
return this.replace(/(^\s+|\s+$)/g, '');

View File

@@ -1,4 +1,4 @@
/* -*- Mode: java; tab-width: 2; c-tab-always-indent: t; indent-tabs-mode: t; c-basic-offset: 2 -*- */
/* -*- Mode: java; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* JavaScript for SOGoMail */
var accounts = {};

View File

@@ -1,4 +1,4 @@
/* -*- Mode: java; tab-width: 2; c-tab-always-indent: t; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* -*- Mode: java; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
var MailerUIdTreeExtension = {
elementCounter: 1,

View File

@@ -1,4 +1,4 @@
/* -*- Mode: java; tab-width: 2; c-tab-always-indent: t; indent-tabs-mode: t; c-basic-offset: 2 -*- */
/* -*- Mode: java; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
var SOGoDragHandlesInterface = {
leftMargin: 180,

View File

@@ -1,4 +1,4 @@
/* -*- Mode: java; tab-width: 2; c-tab-always-indent: t; indent-tabs-mode: t; c-basic-offset: 2 -*- */
/* -*- Mode: java; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
function initLogin() {
var date = new Date();

File diff suppressed because it is too large Load Diff

View File

@@ -1,4 +1,4 @@
/* -*- Mode: java; tab-width: 2; c-tab-always-indent: t; indent-tabs-mode: t; c-basic-offset: 2 -*- */
/* -*- Mode: java; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* test */

View File

@@ -1,4 +1,4 @@
/* -*- Mode: java; tab-width: 2; c-tab-always-indent: t; indent-tabs-mode: t; c-basic-offset: 2 -*- */
/* -*- Mode: java; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2005 SKYRIX Software AG

View File

@@ -1,4 +1,4 @@
/* -*- Mode: java; tab-width: 2; c-tab-always-indent: t; indent-tabs-mode: t; c-basic-offset: 2 -*- */
/* -*- Mode: java; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
var resultsDiv;
var address;

View File

@@ -1,4 +1,4 @@
/* -*- Mode: java; tab-width: 2; c-tab-always-indent: t; indent-tabs-mode: t; c-basic-offset: 2 -*- */
/* -*- Mode: java; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
function onCancelClick(event) {
window.close();

View File

@@ -1,4 +1,4 @@
/* -*- Mode: java; tab-width: 2; c-tab-always-indent: t; indent-tabs-mode: t; c-basic-offset: 2 -*- */
/* -*- Mode: java; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
function onLoadCalendarProperties() {
var colorButton = $("colorButton");

View File

@@ -1,4 +1,4 @@
/* -*- Mode: java; tab-width: 2; c-tab-always-indent: t; indent-tabs-mode: t; c-basic-offset: 2 -*- */
/* -*- Mode: java; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
function onLoadColorPicker(event) {
showColorPicker();

View File

@@ -1,4 +1,4 @@
/* -*- Mode: java; tab-width: 2; c-tab-always-indent: t; indent-tabs-mode: t; c-basic-offset: 2 -*- */
/* -*- Mode: java; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
function onPopupAttendeesWindow(event) {
if (event)

View File

@@ -1,4 +1,4 @@
/* -*- Mode: java; tab-width: 2; c-tab-always-indent: t; indent-tabs-mode: t; c-basic-offset: 2 -*- */
/* -*- Mode: java; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2005 SKYRIX Software AG

View File

@@ -1,4 +1,4 @@
/* -*- Mode: java; tab-width: 2; c-tab-always-indent: t; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* -*- Mode: java; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
var d;

View File

@@ -1,4 +1,4 @@
/* -*- Mode: java; tab-width: 2; c-tab-always-indent: t; indent-tabs-mode: t; c-basic-offset: 2 -*- */
/* -*- Mode: java; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
function onCancelClick(event) {
window.close();

View File

@@ -1,4 +1,4 @@
/* -*- Mode: java; tab-width: 2; c-tab-always-indent: t; indent-tabs-mode: t; c-basic-offset: 2 -*- */
/* -*- Mode: java; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
var contactSelectorAction = 'mailer-contacts';
var attachmentCount = 0;

View File

@@ -1,4 +1,4 @@
/* -*- Mode: java; tab-width: 2; c-tab-always-indent: t; indent-tabs-mode: t; c-basic-offset: 2 -*- */
/* -*- Mode: java; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
function onPrintCurrentMessage(event) {
window.print();

View File

@@ -1,4 +1,4 @@
/* -*- Mode: java; tab-width: 2; c-tab-always-indent: t; indent-tabs-mode: t; c-basic-offset: 2 -*- */
/* -*- Mode: java; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2005 SKYRIX Software AG

View File

@@ -1,4 +1,4 @@
/* -*- Mode: java; tab-width: 2; c-tab-always-indent: t; indent-tabs-mode: t; c-basic-offset: 2 -*- */
/* -*- Mode: java; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
function onCancelClick(event) {
window.close();

View File

@@ -1,4 +1,4 @@
/* -*- Mode: java; tab-width: 2; c-tab-always-indent: t; indent-tabs-mode: t; c-basic-offset: 2 -*- */
/* -*- Mode: java; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
function onPrintCurrentMessage(event) {
window.print();

View File

@@ -1,4 +1,4 @@
/* -*- Mode: java; tab-width: 2; c-tab-always-indent: t; indent-tabs-mode: t; c-basic-offset: 2 -*- */
/* -*- Mode: java; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
function onCancelButtonClick(event) {
window.close();

View File

@@ -1,4 +1,4 @@
/* -*- Mode: java; tab-width: 2; c-tab-always-indent: t; indent-tabs-mode: t; c-basic-offset: 2 -*- */
/* -*- Mode: java; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
function savePreferences(sender) {
var sigList = $("signaturePlacementList");

View File

@@ -1,4 +1,4 @@
/* -*- Mode: java; tab-width: 2; c-tab-always-indent: t; indent-tabs-mode: t; c-basic-offset: 2 -*- */
/* -*- Mode: java; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
var RecurrenceEditor = {
types: new Array("Daily", "Weekly", "Monthly", "Yearly"),

View File

@@ -1,4 +1,5 @@
/* -*- Mode: java; tab-width: 2; c-tab-always-indent: t; indent-tabs-mode: t; c-basic-offset: 2 -*- */
/* -*- Mode: java; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
function initializeWindowButtons() {
var okButton = $("okButton");
var cancelButton = $("cancelButton");

View File

@@ -1,4 +1,4 @@
/* -*- Mode: java; tab-width: 2; c-tab-always-indent: t; indent-tabs-mode: t; c-basic-offset: 2 -*- */
/* -*- Mode: java; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
var contactSelectorAction = 'calendars-contacts';

View File

@@ -1,3 +1,4 @@
/* -*- Mode: java; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*--------------------------------------------------|
| dTree 2.05 | www.destroydrop.com/javascript/tree/ |
|---------------------------------------------------|

View File

@@ -1,4 +1,5 @@
/* -*- Mode: java; tab-width: 2; c-tab-always-indent: t; indent-tabs-mode: t; c-basic-offset: 2 -*- */
/* -*- Mode: java; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2005 SKYRIX Software AG

View File

@@ -1,3 +1,4 @@
/* -*- Mode: java; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/************************************************************************************************************
@fileoverview
JS Color picker

File diff suppressed because one or more lines are too long

View File

@@ -1,3 +1,4 @@
/* -*- Mode: java; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* Prototype JavaScript framework, version 1.6.0.3
* (c) 2005-2009 Sam Stephenson
*

View File

@@ -1,3 +1,4 @@
/* -*- Mode: java; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
// Title: Tigra Calendar
// Description: See the demo at url
// URL: http://www.softcomplex.com/products/tigra_calendar/

View File

@@ -1,3 +1,5 @@
/* -*- Mode: java; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
Object.extend(TableKit, {
getHeaderCells : function(table, cell) {
if(!table) { table = $(cell).up('table'); }

View File

@@ -1,101 +1,103 @@
/**
* This work is licensed under a Creative Commons Attribution 3.0 License
* (http://creativecommons.org/licenses/by/3.0/).
*
* You are free:
* to Share - to copy, distribute and transmit the work
* to Remix - to adapt the work
* Under the following conditions:
* Attribution. You must attribute the work in the manner specified
* by the author or licensor (but not in any way that suggests that
* they endorse you or your use of the work).
*
* For any reuse or distribution, you must make clear to others the license
* terms of this work. The best way to do this is with a link to the
* Creative Commons web page.
*
* Any of the above conditions can be waived if you get permission from
* the copyright holder. Nothing in this license impairs or restricts
* the author's moral rights.
*
* Disclaimer
*
* Your fair dealing and other rights are in no way affected by the above.
* This is a human-readable summary of the Legal Code (the full license).
*
* The author of this work is Vlad Bailescu (http://vlad.bailescu.ro). No
* warranty or support will be provided for this work, although updates
* might be made available at http://vlad.bailescu.ro/javascript/tablekit .
*
* Licence code and basic description provided by Creative Commons.
*
*/
Object.extend(TableKit.options || {}, {
// If true table width gets recalculated on column resize
trueResize : false,
// If true table width will be kept constant on column resize
keepWidth : false
});
Object.extend(TableKit.Resizable, {
resize : function(table, index, w) {
// This part is taken from Andrew Tetlaw's original TableKit.Resizable.resize
var cell;
if(typeof index === 'number') {
if(!table || (table.tagName && table.tagName !== "TABLE")) {return;}
table = $(table);
index = Math.min(table.rows[0].cells.length, index);
index = Math.max(1, index);
index -= 1;
cell = (table.tHead && table.tHead.rows.length > 0) ? $(table.tHead.rows[table.tHead.rows.length-1].cells[index]) : $(table.rows[0].cells[index]);
} else {
cell = $(index);
table = table ? $(table) : cell.up('table');
index = TableKit.getCellIndex(cell);
}
// And now, for the fun stuff
// Read the new options values for the given table
var op = TableKit.option('trueResize keepWidth minWidth', table.id);
// Took also the minWidth as we're gonna use it later anyway
var pad = parseInt(cell.getStyle('paddingLeft'),10) + parseInt(cell.getStyle('paddingRight'),10);
// Improvement: add cell border to padding as width incorporates both
pad += parseInt(cell.getStyle('borderLeftWidth'),10) + parseInt(cell.getStyle('borderRightWidth'),10);
w = Math.max(w-pad, op.minWidth); // This will also be used later
if (!op.trueResize) {
// Original resize method
cell.setStyle({'width' : w + 'px'}); // Using previously read minWidth instead of the old way
} else {
// New stuff
var delta = (w + pad - parseInt(cell.getWidth()));
if (!op.keepWidth) {
// We'll be updating the table width
var tableWidth = parseInt(table.getWidth()) + delta;
cell.setStyle({'width' : w + 'px'});
table.setStyle({'width' : tableWidth + 'px'});
} else {
// Let's see what we have to do to keep the table width constant
var cells = TableKit.getHeaderCells(table);
if (index < 0 || index > cells.length) { return; }
var nbour;
if (index == cells.length - 1) { // Rightmost cell
nbour = cells[index - 1];
} else { // Left or inner cell
nbour = cells[index + 1];
}
var nbourWidth = parseInt(nbour.getWidth());
var nbourPad = parseInt(nbour.getStyle('paddingLeft'),10) + parseInt(nbour.getStyle('paddingRight'),10);
var proposedNbourWidth = nbourWidth - nbourPad - delta;
var newNbourWidth;
if (proposedNbourWidth < op.minWidth) {
// Don't be mean to neighbours. Step off their porch.
newNbourWidth = Math.min(nbourWidth - nbourPad, op.minWidth);
w -= newNbourWidth - proposedNbourWidth;
} else {
newNbourWidth = proposedNbourWidth;
}
nbour.setStyle({'width' : newNbourWidth + 'px'});
cell.setStyle({'width' : w + 'px'});
}
}
}
/* -*- Mode: java; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/**
* This work is licensed under a Creative Commons Attribution 3.0 License
* (http://creativecommons.org/licenses/by/3.0/).
*
* You are free:
* to Share - to copy, distribute and transmit the work
* to Remix - to adapt the work
* Under the following conditions:
* Attribution. You must attribute the work in the manner specified
* by the author or licensor (but not in any way that suggests that
* they endorse you or your use of the work).
*
* For any reuse or distribution, you must make clear to others the license
* terms of this work. The best way to do this is with a link to the
* Creative Commons web page.
*
* Any of the above conditions can be waived if you get permission from
* the copyright holder. Nothing in this license impairs or restricts
* the author's moral rights.
*
* Disclaimer
*
* Your fair dealing and other rights are in no way affected by the above.
* This is a human-readable summary of the Legal Code (the full license).
*
* The author of this work is Vlad Bailescu (http://vlad.bailescu.ro). No
* warranty or support will be provided for this work, although updates
* might be made available at http://vlad.bailescu.ro/javascript/tablekit .
*
* Licence code and basic description provided by Creative Commons.
*
*/
Object.extend(TableKit.options || {}, {
// If true table width gets recalculated on column resize
trueResize : false,
// If true table width will be kept constant on column resize
keepWidth : false
});
Object.extend(TableKit.Resizable, {
resize : function(table, index, w) {
// This part is taken from Andrew Tetlaw's original TableKit.Resizable.resize
var cell;
if(typeof index === 'number') {
if(!table || (table.tagName && table.tagName !== "TABLE")) {return;}
table = $(table);
index = Math.min(table.rows[0].cells.length, index);
index = Math.max(1, index);
index -= 1;
cell = (table.tHead && table.tHead.rows.length > 0) ? $(table.tHead.rows[table.tHead.rows.length-1].cells[index]) : $(table.rows[0].cells[index]);
} else {
cell = $(index);
table = table ? $(table) : cell.up('table');
index = TableKit.getCellIndex(cell);
}
// And now, for the fun stuff
// Read the new options values for the given table
var op = TableKit.option('trueResize keepWidth minWidth', table.id);
// Took also the minWidth as we're gonna use it later anyway
var pad = parseInt(cell.getStyle('paddingLeft'),10) + parseInt(cell.getStyle('paddingRight'),10);
// Improvement: add cell border to padding as width incorporates both
pad += parseInt(cell.getStyle('borderLeftWidth'),10) + parseInt(cell.getStyle('borderRightWidth'),10);
w = Math.max(w-pad, op.minWidth); // This will also be used later
if (!op.trueResize) {
// Original resize method
cell.setStyle({'width' : w + 'px'}); // Using previously read minWidth instead of the old way
} else {
// New stuff
var delta = (w + pad - parseInt(cell.getWidth()));
if (!op.keepWidth) {
// We'll be updating the table width
var tableWidth = parseInt(table.getWidth()) + delta;
cell.setStyle({'width' : w + 'px'});
table.setStyle({'width' : tableWidth + 'px'});
} else {
// Let's see what we have to do to keep the table width constant
var cells = TableKit.getHeaderCells(table);
if (index < 0 || index > cells.length) { return; }
var nbour;
if (index == cells.length - 1) { // Rightmost cell
nbour = cells[index - 1];
} else { // Left or inner cell
nbour = cells[index + 1];
}
var nbourWidth = parseInt(nbour.getWidth());
var nbourPad = parseInt(nbour.getStyle('paddingLeft'),10) + parseInt(nbour.getStyle('paddingRight'),10);
var proposedNbourWidth = nbourWidth - nbourPad - delta;
var newNbourWidth;
if (proposedNbourWidth < op.minWidth) {
// Don't be mean to neighbours. Step off their porch.
newNbourWidth = Math.min(nbourWidth - nbourPad, op.minWidth);
w -= newNbourWidth - proposedNbourWidth;
} else {
newNbourWidth = proposedNbourWidth;
}
nbour.setStyle({'width' : newNbourWidth + 'px'});
cell.setStyle({'width' : w + 'px'});
}
}
}
});

View File

@@ -1,3 +1,4 @@
/* -*- Mode: java; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
*
* Copyright (c) 2007 Andrew Tetlaw & Millstream Web Software