зеркало из https://github.com/mozilla/pjs.git
move removal of support window to compare page
This commit is contained in:
Родитель
e13698bfe6
Коммит
c1c293cff9
|
@ -17,10 +17,20 @@
|
|||
*/
|
||||
<!-- to hide script contents from old browsers
|
||||
|
||||
var globals = parent.parent.parent.globals;
|
||||
|
||||
function loadData()
|
||||
{
|
||||
netscape.security.PrivilegeManager.enablePrivilege( "AccountSetup" );
|
||||
|
||||
globals.debug( "removing support window" );
|
||||
|
||||
if ( globals.supportWindow && globals.supportWindow != null )
|
||||
{
|
||||
globals.supportWindow.close();
|
||||
globals.supportWindow = null;
|
||||
}
|
||||
|
||||
if ( parent.parent.controls.generateControls )
|
||||
parent.parent.controls.generateControls();
|
||||
}
|
||||
|
|
|
@ -39,11 +39,11 @@ function loadData()
|
|||
|
||||
//globals.debug( "removing support window" );
|
||||
|
||||
if ( globals.supportWindow && globals.supportWindow != null )
|
||||
{
|
||||
globals.supportWindow.close();
|
||||
globals.supportWindow = null;
|
||||
}
|
||||
// if ( globals.supportWindow && globals.supportWindow != null )
|
||||
// {
|
||||
// globals.supportWindow.close();
|
||||
// globals.supportWindow = null;
|
||||
// }
|
||||
|
||||
if ( controls.generateControls )
|
||||
controls.generateControls();
|
||||
|
|
Загрузка…
Ссылка в новой задаче