diff --git a/UI/Contacts/French.lproj/Localizable.strings b/UI/Contacts/French.lproj/Localizable.strings index e06489747..ae004fa63 100644 --- a/UI/Contacts/French.lproj/Localizable.strings +++ b/UI/Contacts/French.lproj/Localizable.strings @@ -17,7 +17,7 @@ "Name" = "Nom"; "OfficePhone" = "Bureau"; "Organisation" = "Société"; -"Phone" = "Téléphone" +"Phone" = "Téléphone"; "Phones" = "Téléphones"; "Postal" = "Professionnelle"; "Save" = "Sauvegarder"; diff --git a/UI/WebServerResources/SchedulerUI.css b/UI/WebServerResources/SchedulerUI.css index 8947cae94..8ba18ae1c 100644 --- a/UI/WebServerResources/SchedulerUI.css +++ b/UI/WebServerResources/SchedulerUI.css @@ -61,8 +61,9 @@ UL#uixselector-calendarsList-display margin: 0px; } UL#uixselector-calendarsList-display LI.denied -{ background: #f00; - color: #000; } +{ background: #fefefe; + font-style: italic; + color: #f33; } UL#tasksList { position: absolute; diff --git a/UI/WebServerResources/SchedulerUI.js b/UI/WebServerResources/SchedulerUI.js index 023f60f5d..fb21b69f8 100644 --- a/UI/WebServerResources/SchedulerUI.js +++ b/UI/WebServerResources/SchedulerUI.js @@ -923,6 +923,28 @@ function updateCalendarsList(method) if (method == "removal") updateCalendarStatus(); + + http = createHTTPClient(); + http.url = ApplicationBaseURL + "checkRights"; + http.open("GET", http.url, false /* not async */); + http.send(""); + if (http.status == 200 + && http.responseText.length > 0) { + rights = http.responseText.split(","); + var list = $("uixselector-calendarsList-display").childNodesWithTag("li"); + for (var i = 0; i < list.length; i++) { + var input = list[i].childNodesWithTag("input")[0]; + if (rights[i] == "1") { + list[i].removeClassName("denied"); + input.disabled = false; + } + else { + input.checked = false; + input.disabled = true; + list[i].addClassName("denied"); + } + } + } } } @@ -940,23 +962,27 @@ function addContact(tag, fullContactName, contactId, contactName, contactEmail) uids.value += ',' + contactId; else uids.value = contactId; - var names = $('uixselector-calendarsList-display'); + var names = $("uixselector-calendarsList-display"); names.innerHTML += ('