diff --git a/calendar/resources/content/calendarDayView.xul b/calendar/resources/content/calendarDayView.xul
index 59987cdb947..fec73f1f2b4 100644
--- a/calendar/resources/content/calendarDayView.xul
+++ b/calendar/resources/content/calendarDayView.xul
@@ -42,7 +42,7 @@
- %dtd1;
%dtd2;
diff --git a/calendar/resources/content/calendarEventDialog.js b/calendar/resources/content/calendarEventDialog.js
index f338462826e..35c7b8872fb 100644
--- a/calendar/resources/content/calendarEventDialog.js
+++ b/calendar/resources/content/calendarEventDialog.js
@@ -297,11 +297,7 @@ function loadCalendarEventDialog()
setFieldValue( "advanced-repeat-dayofweek", ( gEvent.recurWeekNumber > 0 && gEvent.recurWeekNumber != 5 ), "selected" );
setFieldValue( "advanced-repeat-dayofweek-last", ( gEvent.recurWeekNumber == 5 ), "selected" );
- // set up OK, Cancel
- doSetOKCancel( onOKCommand, 0 );
-
// start focus on title
-
var firstFocus = document.getElementById( "title-field" );
firstFocus.focus();
}
diff --git a/calendar/resources/content/calendarEventDialog.xul b/calendar/resources/content/calendarEventDialog.xul
index 792792f8977..478932fedcf 100644
--- a/calendar/resources/content/calendarEventDialog.xul
+++ b/calendar/resources/content/calendarEventDialog.xul
@@ -53,7 +53,7 @@
- %dtd1;
%dtd2;
@@ -61,10 +61,13 @@
]>
-
@@ -478,11 +481,6 @@
-
-
-
-
-
-
+
diff --git a/calendar/resources/content/calendarMenuOverlay.xul b/calendar/resources/content/calendarMenuOverlay.xul
index 7355f1c3b88..9620f71a15b 100644
--- a/calendar/resources/content/calendarMenuOverlay.xul
+++ b/calendar/resources/content/calendarMenuOverlay.xul
@@ -42,7 +42,7 @@
- %navigatorDTD;
%calendarDTD;
diff --git a/calendar/resources/content/calendarMonthView.xul b/calendar/resources/content/calendarMonthView.xul
index 5bc23ae5f2d..230d63a3f6e 100644
--- a/calendar/resources/content/calendarMonthView.xul
+++ b/calendar/resources/content/calendarMonthView.xul
@@ -39,7 +39,7 @@
- ***** END LICENSE BLOCK ***** -->
- %dtd1;
%dtd2;
diff --git a/calendar/resources/content/calendarOverlay.xul b/calendar/resources/content/calendarOverlay.xul
index 1c2a2ccaeff..da80f043bd1 100644
--- a/calendar/resources/content/calendarOverlay.xul
+++ b/calendar/resources/content/calendarOverlay.xul
@@ -41,7 +41,7 @@
-
+
diff --git a/calendar/resources/content/calendarRepeatOverlay.xul b/calendar/resources/content/calendarRepeatOverlay.xul
index 739e4a936d0..e69de29bb2d 100644
--- a/calendar/resources/content/calendarRepeatOverlay.xul
+++ b/calendar/resources/content/calendarRepeatOverlay.xul
@@ -1,139 +0,0 @@
-
-
-
-
-
- %dtd1;
-]>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/calendar/resources/content/calendarServerDialog.js b/calendar/resources/content/calendarServerDialog.js
index b4d740aa028..e5065b64f8f 100644
--- a/calendar/resources/content/calendarServerDialog.js
+++ b/calendar/resources/content/calendarServerDialog.js
@@ -115,9 +115,6 @@ function loadCalendarServerDialog()
titleDataItem = document.getElementById( "data-event-title-edit" );
}
- // set up OK, Cancel
- doSetOKCancel( onOKCommand, 0 );
-
// start focus on title
var firstFocus = document.getElementById( "server-name-textbox" );
diff --git a/calendar/resources/content/calendarServerDialog.xul b/calendar/resources/content/calendarServerDialog.xul
index 98af71d665e..5be80786c20 100644
--- a/calendar/resources/content/calendarServerDialog.xul
+++ b/calendar/resources/content/calendarServerDialog.xul
@@ -43,16 +43,19 @@
- %dtd1;
%dtd2;
]>
-
-
-
-
-
-
-
+
diff --git a/calendar/resources/content/calendarToDoDialog.js b/calendar/resources/content/calendarToDoDialog.js
index c4632037b8c..cbb85dfa88d 100644
--- a/calendar/resources/content/calendarToDoDialog.js
+++ b/calendar/resources/content/calendarToDoDialog.js
@@ -208,9 +208,6 @@ function loadCalendarToDoDialog()
updateAlarmItemEnabled();
updateCompletedItemEnabled();
- // set up OK, Cancel
- doSetOKCancel( onOKCommand, 0 );
-
// start focus on title
var firstFocus = document.getElementById( "title-field" );
diff --git a/calendar/resources/content/calendarToDoDialog.xul b/calendar/resources/content/calendarToDoDialog.xul
index 88f428e1a85..036bd8da18c 100644
--- a/calendar/resources/content/calendarToDoDialog.xul
+++ b/calendar/resources/content/calendarToDoDialog.xul
@@ -48,16 +48,19 @@
- %dtd1;
%dtd2;
]>
-
-
-
-
-
-
-
+
diff --git a/calendar/resources/content/calendarWeekView.xul b/calendar/resources/content/calendarWeekView.xul
index f2bce5bb119..ba43a7cd1c7 100644
--- a/calendar/resources/content/calendarWeekView.xul
+++ b/calendar/resources/content/calendarWeekView.xul
@@ -39,7 +39,7 @@
- ***** END LICENSE BLOCK ***** -->
- %dtd1;
%dtd2;
diff --git a/calendar/resources/content/datepicker/datepicker-overlay.xul b/calendar/resources/content/datepicker/datepicker-overlay.xul
index 3a68882d2dc..e69de29bb2d 100644
--- a/calendar/resources/content/datepicker/datepicker-overlay.xul
+++ b/calendar/resources/content/datepicker/datepicker-overlay.xul
@@ -1,365 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
- %dtd1;
- %dtd2;
-]>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/calendar/resources/content/dayView.xul b/calendar/resources/content/dayView.xul
index 59987cdb947..fec73f1f2b4 100644
--- a/calendar/resources/content/dayView.xul
+++ b/calendar/resources/content/dayView.xul
@@ -42,7 +42,7 @@
- %dtd1;
%dtd2;
diff --git a/calendar/resources/content/eventDialog.js b/calendar/resources/content/eventDialog.js
index f338462826e..35c7b8872fb 100644
--- a/calendar/resources/content/eventDialog.js
+++ b/calendar/resources/content/eventDialog.js
@@ -297,11 +297,7 @@ function loadCalendarEventDialog()
setFieldValue( "advanced-repeat-dayofweek", ( gEvent.recurWeekNumber > 0 && gEvent.recurWeekNumber != 5 ), "selected" );
setFieldValue( "advanced-repeat-dayofweek-last", ( gEvent.recurWeekNumber == 5 ), "selected" );
- // set up OK, Cancel
- doSetOKCancel( onOKCommand, 0 );
-
// start focus on title
-
var firstFocus = document.getElementById( "title-field" );
firstFocus.focus();
}
diff --git a/calendar/resources/content/eventDialog.xul b/calendar/resources/content/eventDialog.xul
index 792792f8977..478932fedcf 100644
--- a/calendar/resources/content/eventDialog.xul
+++ b/calendar/resources/content/eventDialog.xul
@@ -53,7 +53,7 @@
- %dtd1;
%dtd2;
@@ -61,10 +61,13 @@
]>
-
@@ -478,11 +481,6 @@
-
-
-
-
-
-
+
diff --git a/calendar/resources/content/menuOverlay.xul b/calendar/resources/content/menuOverlay.xul
index 7355f1c3b88..9620f71a15b 100644
--- a/calendar/resources/content/menuOverlay.xul
+++ b/calendar/resources/content/menuOverlay.xul
@@ -42,7 +42,7 @@
- %navigatorDTD;
%calendarDTD;
diff --git a/calendar/resources/content/monthView.xul b/calendar/resources/content/monthView.xul
index 5bc23ae5f2d..230d63a3f6e 100644
--- a/calendar/resources/content/monthView.xul
+++ b/calendar/resources/content/monthView.xul
@@ -39,7 +39,7 @@
- ***** END LICENSE BLOCK ***** -->
- %dtd1;
%dtd2;
diff --git a/calendar/resources/content/pref/calendarPref.xul b/calendar/resources/content/pref/calendarPref.xul
index e96abc0033d..6196f95b2b7 100644
--- a/calendar/resources/content/pref/calendarPref.xul
+++ b/calendar/resources/content/pref/calendarPref.xul
@@ -40,7 +40,7 @@
- %dtd1;
]>
diff --git a/calendar/resources/content/pref/calendarPrefOverlay.xul b/calendar/resources/content/pref/calendarPrefOverlay.xul
index 51c0054d3b7..7ff48b47a72 100644
--- a/calendar/resources/content/pref/calendarPrefOverlay.xul
+++ b/calendar/resources/content/pref/calendarPrefOverlay.xul
@@ -35,7 +35,7 @@
-
- ***** END LICENSE BLOCK ***** -->
-
%calendarPrefsOverlayDTD;
]>
diff --git a/calendar/resources/content/pref/prefOverlay.xul b/calendar/resources/content/pref/prefOverlay.xul
index 51c0054d3b7..7ff48b47a72 100644
--- a/calendar/resources/content/pref/prefOverlay.xul
+++ b/calendar/resources/content/pref/prefOverlay.xul
@@ -35,7 +35,7 @@
-
- ***** END LICENSE BLOCK ***** -->
-
%calendarPrefsOverlayDTD;
]>
diff --git a/calendar/resources/content/repeatOverlay.xul b/calendar/resources/content/repeatOverlay.xul
index 739e4a936d0..d4d0457719b 100644
--- a/calendar/resources/content/repeatOverlay.xul
+++ b/calendar/resources/content/repeatOverlay.xul
@@ -37,7 +37,7 @@
- ***** END LICENSE BLOCK ***** -->
- %dtd1;
]>
diff --git a/calendar/resources/content/serverDialog.js b/calendar/resources/content/serverDialog.js
index b4d740aa028..e5065b64f8f 100644
--- a/calendar/resources/content/serverDialog.js
+++ b/calendar/resources/content/serverDialog.js
@@ -115,9 +115,6 @@ function loadCalendarServerDialog()
titleDataItem = document.getElementById( "data-event-title-edit" );
}
- // set up OK, Cancel
- doSetOKCancel( onOKCommand, 0 );
-
// start focus on title
var firstFocus = document.getElementById( "server-name-textbox" );
diff --git a/calendar/resources/content/serverDialog.xul b/calendar/resources/content/serverDialog.xul
index 98af71d665e..5be80786c20 100644
--- a/calendar/resources/content/serverDialog.xul
+++ b/calendar/resources/content/serverDialog.xul
@@ -43,16 +43,19 @@
- %dtd1;
%dtd2;
]>
-
-
-
-
-
-
-
+
diff --git a/calendar/resources/content/timepicker/timepicker-overlay.xul b/calendar/resources/content/timepicker/timepicker-overlay.xul
index 8c2a208b5d4..de25c20852d 100644
--- a/calendar/resources/content/timepicker/timepicker-overlay.xul
+++ b/calendar/resources/content/timepicker/timepicker-overlay.xul
@@ -42,7 +42,7 @@
- %dtd1;
%dtd2;
diff --git a/calendar/resources/content/toDoDialog.js b/calendar/resources/content/toDoDialog.js
index c4632037b8c..cbb85dfa88d 100644
--- a/calendar/resources/content/toDoDialog.js
+++ b/calendar/resources/content/toDoDialog.js
@@ -208,9 +208,6 @@ function loadCalendarToDoDialog()
updateAlarmItemEnabled();
updateCompletedItemEnabled();
- // set up OK, Cancel
- doSetOKCancel( onOKCommand, 0 );
-
// start focus on title
var firstFocus = document.getElementById( "title-field" );
diff --git a/calendar/resources/content/toDoDialog.xul b/calendar/resources/content/toDoDialog.xul
index 88f428e1a85..036bd8da18c 100644
--- a/calendar/resources/content/toDoDialog.xul
+++ b/calendar/resources/content/toDoDialog.xul
@@ -48,16 +48,19 @@
- %dtd1;
%dtd2;
]>
-
-
-
-
-
-
-
+
diff --git a/calendar/resources/content/weekView.xul b/calendar/resources/content/weekView.xul
index f2bce5bb119..ba43a7cd1c7 100644
--- a/calendar/resources/content/weekView.xul
+++ b/calendar/resources/content/weekView.xul
@@ -39,7 +39,7 @@
- ***** END LICENSE BLOCK ***** -->
- %dtd1;
%dtd2;