Checked in patch for bug 267476:

New Event, ToDo, Print, Wizard dialogs all can't be moved on Mac OS X
This commit is contained in:
mostafah%oeone.com 2004-11-05 19:02:01 +00:00
Родитель 10e1ad7b28
Коммит efd71aad14
5 изменённых файлов: 17 добавлений и 11 удалений

Просмотреть файл

@ -324,9 +324,9 @@ function launchEditEvent( Event )
// open the dialog modally
window.setCursor( "wait" );
if( Event.type == Event.XPICAL_VEVENT_COMPONENT )
opener.openDialog("chrome://calendar/content/eventDialog.xul", "caEditEvent", "chrome,modal", args );
opener.openDialog("chrome://calendar/content/eventDialog.xul", "caEditEvent", "chrome,titlebar,modal", args );
else
opener.openDialog("chrome://calendar/content/toDoDialog.xul", "caEditEvent", "chrome,modal", args );
opener.openDialog("chrome://calendar/content/toDoDialog.xul", "caEditEvent", "chrome,titlebar,modal", args );
}
function modifyEventDialogResponse( calendarEvent )

Просмотреть файл

@ -292,7 +292,7 @@ function launchPreferences()
if( applicationName == "Mozilla" || applicationName == "Firebird" ) {
goPreferences( "calendarPanel", "chrome://calendar/content/pref/calendarPref.xul", "calendarPanel" );
} else
window.openDialog("chrome://calendar/content/pref/prefBird.xul", "PrefWindow", "chrome,titlebar,resizable=no");
window.openDialog("chrome://calendar/content/pref/prefBird.xul", "PrefWindow", "chrome,titlebar,modal,resizable=no");
}
/**
@ -876,7 +876,7 @@ function openEventDialog(calendarEvent, mode, onOk, server)
// wait cursor will revert to auto in eventDialog.js loadCalendarEventDialog
window.setCursor( "wait" );
// open the dialog modally
openDialog("chrome://calendar/content/eventDialog.xul", "caEditEvent", "chrome,modal", args );
openDialog("chrome://calendar/content/eventDialog.xul", "caEditEvent", "chrome,titlebar,modal", args );
}
/** PRIVATE: open todo dialog in mode, and call onOk if ok is clicked.
@ -896,7 +896,7 @@ function openToDoDialog(calendarToDo, mode, onOk, server)
// wait cursor will revert to auto in todoDialog.js loadCalendarEventDialog
window.setCursor( "wait" );
// open the dialog modally
openDialog("chrome://calendar/content/toDoDialog.xul", "caEditToDo", "chrome,modal", args );
openDialog("chrome://calendar/content/toDoDialog.xul", "caEditToDo", "chrome,titlebar,modal", args );
}
/**
@ -1142,7 +1142,7 @@ function launchWizard()
{
var args = new Object();
openDialog("chrome://calendar/content/wizard.xul", "caWizard", "chrome,modal", args );
openDialog("chrome://calendar/content/wizard.xul", "caWizard", "chrome,titlebar,modal", args );
}
function reloadApplication()
@ -1239,7 +1239,7 @@ function publishEntireCalendar()
args.publishObject = publishObject;
}
openDialog("chrome://calendar/content/publishDialog.xul", "caPublishEvents", "chrome,modal", args );
openDialog("chrome://calendar/content/publishDialog.xul", "caPublishEvents", "chrome,titlebar,modal", args );
}
function publishEntireCalendarDialogResponse( CalendarPublishObject )
@ -1270,7 +1270,7 @@ function publishCalendarData()
args.onOk = self.publishCalendarDataDialogResponse;
openDialog("chrome://calendar/content/publishDialog.xul", "caPublishEvents", "chrome,modal", args );
openDialog("chrome://calendar/content/publishDialog.xul", "caPublishEvents", "chrome,titlebar,modal", args );
}
function publishCalendarDataDialogResponse( CalendarPublishObject )

Просмотреть файл

@ -58,7 +58,7 @@
args.onOk = <function>; // funtion to call when OK is clicked
args.calendarEvent = calendarEvent; // newly creatd calendar event to be editted
openDialog("chrome://calendar/content/eventDialog.xul", "caEditEvent", "chrome,modal", args );
openDialog("chrome://calendar/content/eventDialog.xul", "caEditEvent", "chrome,titlebar,modal", args );
*
* Invoke this dialog to edit an existing event as follows:
*
@ -323,6 +323,8 @@ function loadCalendarEventDialog()
// revert cursor from "wait" set in calendar.js editEvent, editNewEvent
opener.setCursor( "auto" );
self.focus();
}

Просмотреть файл

@ -59,7 +59,7 @@
* args.weeksInView=multiweek how many weeks to show
* args.prevWeeksInView=previous weeks to show in view
* args.startOfWeek=zero based day to start the week
* calendar.openDialog("chrome://calendar/content/eventDialog.xul", "printdialog", "chrome,modal", args );
* calendar.openDialog("chrome://calendar/content/eventDialog.xul", "printdialog", "chrome,titlebar.modal", args );
*
* IMPLEMENTATION NOTES
**********
@ -102,6 +102,8 @@ function loadCalendarPrintDialog()
firstFocus.focus();
opener.setCursor( "auto" );
self.focus();
}

Просмотреть файл

@ -57,7 +57,7 @@
args.onOk = <function>; // funtion to call when OK is clicked
args.calendarEvent = calendarEvent; // newly creatd calendar event to be editted
openDialog("chrome://calendar/content/eventDialog.xul", "caEditEvent", "chrome,modal", args );
openDialog("chrome://calendar/content/eventDialog.xul", "caEditEvent", "chrome,titlebar,modal", args );
*
* Invoke this dialog to edit an existing event as follows:
*
@ -337,6 +337,8 @@ function loadCalendarEventDialog()
// revert cursor from "wait" set in calendar.js editToDo, newToDoCommand
opener.setCursor( "auto" );
self.focus();
}