зеркало из https://github.com/mozilla/pjs.git
Fixing bug 154600.
This commit is contained in:
Родитель
8a927d8f0d
Коммит
f3c2d92ed8
|
@ -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.
|
||||||
|
|
Загрузка…
Ссылка в новой задаче