Monotone-Parent: 13eeb49749c2fffd30ec7595581aa47c40de5671

Monotone-Revision: 0444b46399c9927608800ce991a1f206d6d1112f

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-06-01T20:35:51
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-06-01 20:35:51 +00:00
parent 76078d93de
commit c00f818407
8 changed files with 31 additions and 53 deletions
+5 -12
View File
@@ -911,20 +911,13 @@ function calendarStatusCallback(http) {
}
function calendarEntryCallback(http) {
var disabled = true;
if (http.readyState == 4) {
if (http.status == 200)
disabled = (http.responseText == "0");
if (http.readyState == 4) {
var denied = (http.status != 204)
var entry = $(http.callbackData);
var input = entry.childNodesWithTag("input")[0];
input.disabled = disabled;
if (disabled) {
input.checked = false;
$(entry).addClassName("denied");
}
if (denied)
entry.addClassName("denied");
else
$(entry).removeClassName("denied");
entry.removeClassName("denied");
}
}