diff --git a/mozilla/calendar/resources/content/aboutDialog.xul b/mozilla/calendar/resources/content/aboutDialog.xul new file mode 100644 index 00000000000..55a79d78776 --- /dev/null +++ b/mozilla/calendar/resources/content/aboutDialog.xul @@ -0,0 +1,83 @@ + + + + + + +%brandDTD; + +%aboutDialogDTD; +]> + + + + + + + + + + + + + + /* XXXBlake This is a workaround. I find that if I try to use href and I open + About as a modal dialog, a new browser window opens when I click the link + but the page doesn't load in it. */ + ©right; + + + + diff --git a/mozilla/calendar/resources/content/calendar.js b/mozilla/calendar/resources/content/calendar.js index 363cb881e68..783a6b6c072 100644 --- a/mozilla/calendar/resources/content/calendar.js +++ b/mozilla/calendar/resources/content/calendar.js @@ -1452,3 +1452,14 @@ function changeDisplayToDoInViewCheckbox( menuindex ) { } gCalendarWindow.currentView.refreshEvents( ); } + +function openAboutDialog() +{ + window.openDialog("chrome://calendar/content/aboutDialog.xul", "About", "modal,centerscreen,chrome,resizable=no"); +} + +function openPreferences() +{ + openDialog("chrome://calendar/content/pref/pref.xul","PrefWindow", + "chrome,titlebar,resizable,modal"); +} diff --git a/mozilla/calendar/resources/content/pref/pref.xul b/mozilla/calendar/resources/content/pref/pref.xul new file mode 100644 index 00000000000..5500747f8f7 --- /dev/null +++ b/mozilla/calendar/resources/content/pref/pref.xul @@ -0,0 +1,110 @@ + + + + + + %prefDTD; + + %calendarPrefsOverlayDTD; +]> + + + + + + +