mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-17 14:24:52 +00:00
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:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user