This commit is contained in:
mikep%oeone.com 2002-07-02 14:07:17 +00:00
Родитель 8a927d8f0d
Коммит f3c2d92ed8
1 изменённых файлов: 2 добавлений и 3 удалений

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

@ -27,8 +27,7 @@ var gPendingEvents = new Array();
function openCalendar() function openCalendar()
{ {
var wmdata = Components.classes["@mozilla.org/rdf/datasource;1?name=window-mediator"].getService(); var wmediator = Components.classes["@mozilla.org/appshell/window-mediator;1"].getService(Components.interfaces.nsIWindowMediator);
var wmediator = wmdata.QueryInterface(Components.interfaces.nsIWindowMediator);
var calendarWindow = wmediator.getMostRecentWindow( "calendarMainWindow" ); var calendarWindow = wmediator.getMostRecentWindow( "calendarMainWindow" );
//the topWindow is always null, but it loads chrome://calendar/content/calendar.xul into the open window. //the topWindow is always null, but it loads chrome://calendar/content/calendar.xul into the open window.