diff --git a/calendar/base/content/preferences/general.js b/calendar/base/content/preferences/general.js
index 034ee59e2948..cb97d6bd08a8 100644
--- a/calendar/base/content/preferences/general.js
+++ b/calendar/base/content/preferences/general.js
@@ -58,5 +58,12 @@ var gGeneralPane = {
var selectedIndex = dateFormatMenuList.selectedIndex;
dateFormatMenuList.selectedIndex = -1;
dateFormatMenuList.selectedIndex = selectedIndex;
+ },
+
+ autoRefreshPrefChanged: function() {
+ var autoRefreshPref =
+ document.getElementById("calendar.autorefresh.enabled").value;
+ document.getElementById("calendar.autorefresh.timeout").disabled =
+ !autoRefreshPref;
}
};
diff --git a/calendar/base/content/preferences/general.xul b/calendar/base/content/preferences/general.xul
index 73cbcb78a83a..49daa29bb969 100644
--- a/calendar/base/content/preferences/general.xul
+++ b/calendar/base/content/preferences/general.xul
@@ -55,6 +55,8 @@
src="chrome://calendar/content/preferences/general.js"/>
+