diff --git a/calendar/resources/content/calendar.js b/calendar/resources/content/calendar.js
index 7929b004efb0..80a8b4c978d5 100644
--- a/calendar/resources/content/calendar.js
+++ b/calendar/resources/content/calendar.js
@@ -668,6 +668,26 @@ function editCalendarDialog(event)
openCalendarProperties(document.popupNode.calendar, null);
}
+function calendarListboxDoubleClick(event) {
+ if(event.target.calendar)
+ openCalendarProperties(event.target.calendar, null);
+ else
+ openCalendarWizard();
+}
+
+function checkCalListTarget() {
+ if(!document.popupNode.calendar) {
+ document.getElementById("calpopup-edit").setAttribute("disabled", "true");
+ document.getElementById("calpopup-delete").setAttribute("disabled", "true");
+ document.getElementById("calpopup-publish").setAttribute("disabled", "true");
+ }
+ else {
+ document.getElementById("calpopup-edit").removeAttribute("disabled");
+ document.getElementById("calpopup-delete").removeAttribute("disabled");
+ document.getElementById("calpopup-publish").removeAttribute("disabled");
+ }
+}
+
function deleteCalendar(event)
{
var cal = document.popupNode.calendar
diff --git a/calendar/resources/content/calendar.xul b/calendar/resources/content/calendar.xul
index 1e0d08c24834..12612db725c3 100644
--- a/calendar/resources/content/calendar.xul
+++ b/calendar/resources/content/calendar.xul
@@ -141,7 +141,7 @@
-
+
#ifdef XP_MACOSX
@@ -401,20 +401,25 @@
-
-