Monotone-Parent: d20b6efa6a8c415c1db8ca849c311e740a312646
Monotone-Revision: 5d08c3e624999be469da2fd6046209e122529287 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2007-11-06T22:34:42 Monotone-Branch: ca.inverse.sogomaint-2.0.2
parent
54b6c29882
commit
96b00f426c
|
@ -5,6 +5,9 @@
|
|||
xmlns:const="http://www.skyrix.com/od/constant"
|
||||
xmlns:label="OGo:label"
|
||||
>
|
||||
<span id="toolbar">
|
||||
</span>
|
||||
|
||||
<div class="menu" id="searchMenu">
|
||||
<ul id="searchOptions" class="choiceMenu">
|
||||
<li id="name_or_address"><var:string
|
||||
|
|
|
@ -333,6 +333,9 @@ function onToolbarWriteToSelectedContacts(event) {
|
|||
var rows = contactsList.getSelectedRowsId();
|
||||
var rowsWithEmail = 0;
|
||||
|
||||
if (rows.length == 0)
|
||||
return false;
|
||||
|
||||
for (var i = 0; i < rows.length; i++) {
|
||||
var emailCell = $(rows[i]).down('td', 1);
|
||||
if (emailCell.firstChild) { // .nodeValue is the contact email address
|
||||
|
@ -341,7 +344,7 @@ function onToolbarWriteToSelectedContacts(event) {
|
|||
+ "/" + rows[i] + "/write");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (rowsWithEmail == 0) {
|
||||
window.alert(labels["The selected contact has no email address."]);
|
||||
}
|
||||
|
|
|
@ -1485,28 +1485,23 @@ function appendCalendar(folderName, folderPath) {
|
|||
|
||||
// Update CSS for events color
|
||||
if (!document.styleSheets) return;
|
||||
var theRules = new Array();
|
||||
var lastSheet = document.styleSheets[document.styleSheets.length - 1];
|
||||
if (lastSheet.insertRule) { // Mozilla
|
||||
lastSheet.insertRule('.calendarFolder' + folderPath.substr(1) + ' {'
|
||||
+ ' background-color: '
|
||||
+ color
|
||||
+ ' !important; }', 0);
|
||||
lastSheet.insertRule('div.colorBox.calendarFolder' + folderPath.substr(1) + ' {'
|
||||
+ ' color: '
|
||||
+ color
|
||||
+ ' !important; }', 0);
|
||||
}
|
||||
else { // IE
|
||||
lastSheet.addRule('.calendarFolder' + folderPath.substr(1),
|
||||
' background-color: '
|
||||
+ color
|
||||
+ ' !important; }');
|
||||
lastSheet.addRule('div.colorBox.calendarFolder' + folderPath.substr(1),
|
||||
' color: '
|
||||
+ color
|
||||
+ ' !important; }');
|
||||
}
|
||||
|
||||
var styleElement = document.createElement("style");
|
||||
styleElement.type = "text/css";
|
||||
var selectors = [
|
||||
'.calendarFolder' + folderPath.substr(1),
|
||||
'div.colorBox.calendarFolder' + folderPath.substr(1)
|
||||
];
|
||||
var rules = [
|
||||
' { background-color: ' + color + ' !important; }',
|
||||
' { color: ' + color + ' !important; }'
|
||||
];
|
||||
for (var i = 0; i < rules.length; i++)
|
||||
if (styleElement.styleSheet && styleElement.styleSheet.addRule)
|
||||
styleElement.styleSheet.addRule(selectors[i], rules[i]); // IE
|
||||
else
|
||||
styleElement.appendChild(document.createTextNode(selectors[i] + rules[i])); // Mozilla _+ Safari
|
||||
document.getElementsByTagName("head")[0].appendChild(styleElement);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -33,6 +33,9 @@ IMG#progressIndicator
|
|||
margin-top: 1.5em;
|
||||
margin-right: 1em; }
|
||||
|
||||
SPAN#toolbar IMG#progressIndicator
|
||||
{ margin-top: 0.75em; }
|
||||
|
||||
DIV#pageContent
|
||||
{ clear: both; }
|
||||
|
||||
|
|
|
@ -284,7 +284,7 @@ function triggerAjaxRequest(url, callback, userdata) {
|
|||
var http = createHTTPClient();
|
||||
|
||||
activeAjaxRequests += 1;
|
||||
document.animTimer = setTimeout("checkAjaxRequestsState();", 200);
|
||||
document.animTimer = setTimeout("checkAjaxRequestsState();", 50);
|
||||
//url = appendDifferentiator(url);
|
||||
|
||||
if (http) {
|
||||
|
|
Loading…
Reference in New Issue