mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-27 09:50:34 +05:00
58 lines
1.1 KiB
JavaScript
Executable File
58 lines
1.1 KiB
JavaScript
Executable File
var gTEA = new Array();
|
|
function aTE()
|
|
{
|
|
gTEA[gTEA.length] = new tocEntry(aTE.arguments);
|
|
}
|
|
|
|
function tocEntry(fn_arguments)
|
|
{
|
|
if (fn_arguments.length < 3)
|
|
{
|
|
alert ("data format wrong!!!");
|
|
return;
|
|
}
|
|
|
|
this.nType = fn_arguments[0];
|
|
this.nContents = fn_arguments[1];
|
|
this.sItemName = fn_arguments[2];
|
|
|
|
if (this.nType == 1 || this.nType == 2 || this.nType == 16)
|
|
{
|
|
if (fn_arguments.length > 3)
|
|
{
|
|
this.sItemURL = fn_arguments[3];
|
|
if (fn_arguments.length > 4)
|
|
{
|
|
this.sTarget = fn_arguments[4];
|
|
if (fn_arguments.length > 5)
|
|
this.sIconRef = fn_arguments[5];
|
|
}
|
|
}
|
|
}
|
|
if (this.nType == 4 || this.nType == 8)
|
|
{
|
|
if (fn_arguments.length > 3)
|
|
{
|
|
this.sRefURL = fn_arguments[3];
|
|
if (fn_arguments.length > 4)
|
|
{
|
|
this.sItemURL = fn_arguments[4];
|
|
if (fn_arguments.length > 5)
|
|
{
|
|
this.sTarget = fn_arguments[5];
|
|
if (fn_arguments.length > 6)
|
|
this.sIconRef = fn_arguments[6];
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
function window_OnLoad()
|
|
{
|
|
if (parent && parent != this && parent.putData) {
|
|
parent.putData(gTEA);
|
|
}
|
|
}
|
|
window.onload = window_OnLoad; |