Jump to content

[BUG+FIX] conditions are inserted at the end


 Share

Recommended Posts

Fix

In API.js replace


function moveCaretToStart(control)
{
position="api.js";
whatfunc="moveCaretToStart()";

if (control.createTextRange)
{
var range=control.createTextRange();

range.collapse(true);
range.select();
}
else if (control.setSelectionRange)
{
control.focus();
control.setSelectionRange(0,0);
}
}

with


function insertAtCaret(control, text)
{
position="api.js";
whatfunc="insertAtCaret()";

if (control.setSelectionRange)
control.value = control.value.substring(0,control.selectionStart) + text + control.value.substring(control.selectionStart,control.selectionEnd) + control.value.substring(control.selectionEnd,control.value.length);
else if (document.selection && document.selection.createRange) {
control.focus();
var range = document.selection.createRange();
range.text = text + range.text;
}
}

and


function selectText(control,txt)
{
position="api.js";
whatfunc="moveCaretToStart()";

with


function selectText(control,txt)
{
position="api.js";
whatfunc="selectText()";

In configwizard replace


LayoutConditionsMenuBar();
LayoutGrayedConditionsMenuBar();

with


SetUpConditionMenuBar("ConditionsMenuBar","cond", onClickHandlerConditions);
SetUpConditionMenuBar("GrayedConditionsMenuBar","gcond",onClickHandlerGrayedConditions);

and


function LayoutConditionsMenuBar()
{
position="configwizard.js";
whatfunc="LayoutConditionsMenuBar()";

ConditionsMenuBar=new dhtmlXMenuObject("ConditionsMenuBar",dhxSkin,true);
ConditionsMenuBar.setImagePath("../common/codebase/imgs/");
ConditionsMenuBar.setOpenMode("win");
ConditionsMenuBar.attachEvent("onClick",onClickHandlerConditions);
ConditionsMenuBar.addNewSibling(null, "cond_filesystem", getText(lblFileSystem), false);
ConditionsMenuBar.addNewChild("cond_filesystem", 0, "cond_filesystem_file", getText(lblFile), false, "", "");
ConditionsMenuBar.addNewChild("cond_filesystem_file", 0, "filesystem_FileExists", "FileExists()", false, "", "");
ConditionsMenuBar.addNewChild("cond_filesystem_file", 1, "filesystem_getFileSize", "getFileSize()", false, "", "");
ConditionsMenuBar.addNewChild("cond_filesystem_file", 2, "filesystem_getFileType", "getFileType()", false, "", "");
ConditionsMenuBar.addNewChild("cond_filesystem_file", 3, "filesystem_getFileVersion", "getFileVersion()", false, "", "");
ConditionsMenuBar.addNewChild("cond_filesystem_file", 4, "filesystem_fileVersionGreaterThan", "fileVersionGreaterThan()", false, "", "");
ConditionsMenuBar.addNewChild("cond_filesystem", 1, "cond_filesystem_folder", getText(lblFolder), false, "", "");
ConditionsMenuBar.addNewChild("cond_filesystem_folder", 0, "filesystem_FolderExists", "FolderExists()", false, "", "");
ConditionsMenuBar.addNewChild("cond_filesystem_folder", 1, "filesystem_getFolderSize", "getFolderSize()", false, "", "");
ConditionsMenuBar.addNewChild("cond_filesystem", 2, "cond_filesystem_drive", getText(lblDrive), false, "", "");
ConditionsMenuBar.addNewChild("cond_filesystem_drive", 0, "filesystem_DriveExists", "DriveExists()", false, "", "");
ConditionsMenuBar.addNewChild("cond_filesystem_drive", 1, "filesystem_DriveType", "DriveType()", false, "", "");
ConditionsMenuBar.addNewChild("cond_filesystem_drive", 2, "filesystem_DriveVolumeName", "DriveVolumeName()", false, "", "");
ConditionsMenuBar.addNewChild("cond_filesystem_drive", 3, "filesystem_DriveShareName", "DriveShareName()", false, "", "");
ConditionsMenuBar.addNewChild("cond_filesystem_drive", 4, "filesystem_DriveFileSystem", "DriveFileSystem()", false, "", "");
ConditionsMenuBar.addNewChild("cond_filesystem_drive", 5, "filesystem_DriveAvailableSpace", "DriveAvailableSpace()", false, "", "");
ConditionsMenuBar.addNewChild("cond_filesystem_drive", 6, "filesystem_DriveTotalSize", "DriveTotalSize()", false, "", "");
ConditionsMenuBar.addNewChild("cond_filesystem", 3, "filesystem_getComSpec", "getComSpec()", false, "", "");
ConditionsMenuBar.addNewChild("cond_filesystem", 4, "filesystem_getEnvVar", "getEnvVar()", false, "", "");
ConditionsMenuBar.addNewSibling("cond_filesystem", "cond_registry", getText(lblRegistry), false);
ConditionsMenuBar.addNewChild("cond_registry", 0, "registry_RegKeyExists", "RegKeyExists()", false, "", "");
ConditionsMenuBar.addNewChild("cond_registry", 1, "registry_RegValueExists", "RegValueExists()", false, "", "");
ConditionsMenuBar.addNewChild("cond_registry", 2, "registry_RegKeyValue", "RegKeyValue()", false, "", "");
ConditionsMenuBar.addNewSibling("cond_registry", "cond_architecture", getText(lblArchitecture), false);
ConditionsMenuBar.addNewChild("cond_architecture", 0, "cond_architecture_os", getText(lblOperatingSystem), false, "", "");
ConditionsMenuBar.addNewChild("cond_architecture_os", 0, "architecture_getOSver", "getOSver()", false, "", "");
ConditionsMenuBar.addNewChild("cond_architecture_os", 1, "architecture_getOSvernum", "getOSvernum()", false, "", "");
ConditionsMenuBar.addNewChild("cond_architecture_os", 2, "architecture_getSPver", "getSPver()", false, "", "");
ConditionsMenuBar.addNewChild("cond_architecture_os", 3, "architecture_getOSlang", "getOSlang()", false, "", "");
ConditionsMenuBar.addNewChild("cond_architecture_os", 4, "architecture_getOSlocale", "getOSlocale()", false, "", "");
ConditionsMenuBar.addNewChild("cond_architecture", 1, "cond_architecture_arch", getText(lblArchitecture), false, "", "");
ConditionsMenuBar.addNewChild("cond_architecture_arch", 0, "architecture_getmshtaBits", "getmshtaBits()", false, "", "");
ConditionsMenuBar.addNewChild("cond_architecture_arch", 1, "architecture_getArch", "getArch()", false, "", "");
ConditionsMenuBar.addNewChild("cond_architecture_arch", 2, "architecture_getArch6432", "getArch6432()", false, "", "");
ConditionsMenuBar.addNewChild("cond_architecture_arch", 3, "architecture_getBits", "getBits()", false, "", "");
ConditionsMenuBar.addNewChild("cond_architecture_arch", 4, "architecture_getArchName", "getArchName()", false, "", "");
ConditionsMenuBar.addNewChild("cond_architecture_arch", 5, "architecture_getArchNameString", "getArchNameString()", false, "", "");
ConditionsMenuBar.addNewChild("cond_architecture_arch", 6, "architecture_getArchIdentifier", "getArchIdentifier()", false, "", "");
ConditionsMenuBar.addNewChild("cond_architecture_arch", 7, "architecture_getNumProcs", "getNumProcs()", false, "", "");
ConditionsMenuBar.addNewChild("cond_architecture_arch", 8, "architecture_getArchMHz", "getArchMHz()", false, "", "");
ConditionsMenuBar.addNewChild("cond_architecture", 2, "cond_architecture_hardware", getText(lblHardware), false, "", "");
ConditionsMenuBar.addNewChild("cond_architecture_hardware", 0, "architecture_getBaseBoardManufacturer", "getBaseBoardManufacturer()", false, "", "");
ConditionsMenuBar.addNewChild("cond_architecture_hardware", 1, "architecture_getBaseBoardModel", "getBaseBoardModel()", false, "", "");
ConditionsMenuBar.addNewChild("cond_architecture_hardware", 2, "architecture_getVideoControllerID", "getVideoControllerID()", false, "", "");
ConditionsMenuBar.addNewChild("cond_architecture_hardware", 3, "architecture_getSoundDeviceID", "getSoundDeviceID()", false, "", "");
ConditionsMenuBar.addNewChild("cond_architecture_hardware", 4, "architecture_getNetworkAdapterID", "getNetworkAdapterID()", false, "", "");
ConditionsMenuBar.addNewChild("cond_architecture_hardware", 5, "architecture_getWirelessNetworkAdapterID", "getWirelessNetworkAdapterID()", false, "", "");
ConditionsMenuBar.addNewChild("cond_architecture_hardware", 6, "architecture_getModemID", "getModemID()", false, "", "");
ConditionsMenuBar.addNewChild("cond_architecture_hardware", 7, "architecture_getHDDControllerID", "getHDDControllerID()", false, "", "");
ConditionsMenuBar.addNewChild("cond_architecture_hardware", 8, "architecture_getCDROMID", "getCDROMID()", false, "", "");
ConditionsMenuBar.addNewChild("cond_architecture_hardware", 9, "architecture_getCDBurnerID", "getCDBurnerID()", false, "", "");
ConditionsMenuBar.addNewChild("cond_architecture_hardware", 10, "architecture_getCDBurnerName", "getCDBurnerName()", false, "", "");
ConditionsMenuBar.addNewChild("cond_architecture_hardware", 11, "architecture_hasDVDROM", "hasDVDROM()", false, "", "");
ConditionsMenuBar.addNewChild("cond_architecture_hardware", 12, "architecture_hasDVDBurner", "hasDVDBurner()", false, "", "");
ConditionsMenuBar.addNewChild("cond_architecture_hardware", 13, "architecture_hasDVDDrive", "hasDVDDrive()", false, "", "");
ConditionsMenuBar.addNewChild("cond_architecture_hardware", 14, "architecture_getKeyboardID", "getKeyboardID()", false, "", "");
ConditionsMenuBar.addNewChild("cond_architecture_hardware", 15, "architecture_getPointingDeviceID", "getPointngDeviceID()", false, "", "");
ConditionsMenuBar.addNewChild("cond_architecture_hardware", 99, "architecture_getSystemEnclosureType", "getSystemEnclosureType()", false, "", "");
ConditionsMenuBar.addNewChild("cond_architecture", 3, "cond_architecture_system", getText(lblSystem), false, "", "");
ConditionsMenuBar.addNewChild("cond_architecture_system", 0, "architecture_getSysManufacturer", "getSysManufacturer()", false, "", "");
ConditionsMenuBar.addNewChild("cond_architecture_system", 1, "architecture_getSysModel", "getSysModel()", false, "", "");
ConditionsMenuBar.addNewChild("cond_architecture_system", 2, "architecture_getSysPCType", "getSysPCType()", false, "", "");
ConditionsMenuBar.addNewChild("cond_architecture_system", 3, "architecture_getSysType", "getSysType()", false, "", "");
ConditionsMenuBar.addNewSeparator("architecture_getSysType", 4);
ConditionsMenuBar.addNewChild("cond_architecture_system", 5, "architecture_getFreeRAM", "getFreeRAM()", false, "", "");
ConditionsMenuBar.addNewChild("cond_architecture_system", 6, "architecture_getTotalRAM", "getTotalRAM()", false, "", "");
ConditionsMenuBar.addNewChild("cond_architecture", 4, "cond_architecture_bios", getText(lblBIOS), false, "", "");
ConditionsMenuBar.addNewChild("cond_architecture_bios", 0, "architecture_getBIOSManufacturer", "getBIOSManufacturer()", false, "", "");
ConditionsMenuBar.addNewChild("cond_architecture_bios", 1, "architecture_getBIOSVersion", "getBIOSVersion()", false, "", "");
ConditionsMenuBar.addNewChild("cond_architecture_bios", 2, "architecture_getSMBIOSVersion", "getSMBIOSVersion()", false, "", "");
ConditionsMenuBar.addNewChild("cond_architecture_bios", 3, "architecture_getBIOSCaption", "getBIOSCaption()", false, "", "");
ConditionsMenuBar.addNewSibling("cond_architecture", "cond_security", getText(lblSecurity), false);
ConditionsMenuBar.addNewChild("cond_security", 0, "security_isLogOnServer", "isLogOnServer()", false, "", "");
ConditionsMenuBar.addNewChild("cond_security", 1, "security_isUserDomain", "isUserDomain()", false, "", "");
ConditionsMenuBar.addNewChild("cond_security", 2, "security_isComputerName", "isComputerName()", false, "", "");
ConditionsMenuBar.addNewChild("cond_security", 3, "security_isUserName", "isUserName()", false, "", "");
ConditionsMenuBar.addNewSeparator("security_isUserName", 4);
ConditionsMenuBar.addNewChild("cond_security", 5, "security_getFirewallProduct", "getFirewallProduct()", false, "", "");
ConditionsMenuBar.addNewChild("cond_security", 6, "security_getAntiVirusProduct", "getAntiVirusProduct()", false, "", "");
ConditionsMenuBar.addNewSibling("cond_security", "cond_other", getText(lblOther), false);
ConditionsMenuBar.addNewChild("cond_other", 0, "other_ConnectedToInternet", "ConnectedToInternet()", false, "", "");
ConditionsMenuBar.addNewChild("cond_other", 1, "other_isInstalled", "isInstalled()", false, "", "");
ConditionsMenuBar.addNewChild("cond_other", 2, "other_getIEver", "getIEver()", false, "", "");
ConditionsMenuBar.addNewChild("cond_other", 3, "other_isDesktopLoaded", "isDesktopLoaded()", false, "", "");
ConditionsMenuBar.setOverflowHeight(6);
}

function LayoutGrayedConditionsMenuBar()
{
position="configwizard.js";
whatfunc="LayoutGrayedConditionsMenuBar()";

GrayedConditionsMenuBar=new dhtmlXMenuObject("GrayedConditionsMenuBar",dhxSkin,true);
GrayedConditionsMenuBar.setImagePath("../common/codebase/imgs/");
GrayedConditionsMenuBar.setOpenMode("win");
GrayedConditionsMenuBar.attachEvent("onClick",onClickHandlerGrayedConditions);
GrayedConditionsMenuBar.addNewSibling(null, "gcond_filesystem", getText(lblFileSystem), false);
GrayedConditionsMenuBar.addNewChild("gcond_filesystem", 0, "gcond_filesystem_file", getText(lblFile), false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_filesystem_file", 0, "filesystem_FileExists", "FileExists()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_filesystem_file", 1, "filesystem_getFileSize", "getFileSize()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_filesystem_file", 2, "filesystem_getFileType", "getFileType()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_filesystem_file", 3, "filesystem_getFileVersion", "getFileVersion()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_filesystem_file", 4, "filesystem_fileVersionGreaterThan", "fileVersionGreaterThan()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_filesystem", 1, "gcond_filesystem_folder", getText(lblFolder), false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_filesystem_folder", 0, "filesystem_FolderExists", "FolderExists()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_filesystem_folder", 1, "filesystem_getFolderSize", "getFolderSize()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_filesystem", 2, "gcond_filesystem_drive", getText(lblDrive), false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_filesystem_drive", 0, "filesystem_DriveExists", "DriveExists()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_filesystem_drive", 1, "filesystem_DriveType", "DriveType()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_filesystem_drive", 2, "filesystem_DriveVolumeName", "DriveVolumeName()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_filesystem_drive", 3, "filesystem_DriveShareName", "DriveShareName()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_filesystem_drive", 4, "filesystem_DriveFileSystem", "DriveFileSystem()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_filesystem_drive", 5, "filesystem_DriveAvailableSpace", "DriveAvailableSpace()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_filesystem_drive", 6, "filesystem_DriveTotalSize", "DriveTotalSize()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_filesystem", 3, "filesystem_getComSpec", "getComSpec()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_filesystem", 4, "filesystem_getEnvVar", "getEnvVar()", false, "", "");
GrayedConditionsMenuBar.addNewSibling("gcond_filesystem", "gcond_registry", getText(lblRegistry), false);
GrayedConditionsMenuBar.addNewChild("gcond_registry", 0, "registry_RegKeyExists", "RegKeyExists()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_registry", 1, "registry_RegValueExists", "RegValueExists()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_registry", 2, "registry_RegKeyValue", "RegKeyValue()", false, "", "");
GrayedConditionsMenuBar.addNewSibling("gcond_registry", "gcond_architecture", getText(lblArchitecture), false);
GrayedConditionsMenuBar.addNewChild("gcond_architecture", 0, "gcond_architecture_os", getText(lblOperatingSystem), false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_architecture_os", 0, "architecture_getOSver", "getOSver()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_architecture_os", 1, "architecture_getOSvernum", "getOSvernum()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_architecture_os", 2, "architecture_getSPver", "getSPver()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_architecture_os", 3, "architecture_getOSlang", "getOSlang()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_architecture_os", 4, "architecture_getOSlocale", "getOSlocale()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_architecture", 1, "gcond_architecture_arch", getText(lblArchitecture), false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_architecture_arch", 0, "architecture_getmshtaBits", "getmshtaBits()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_architecture_arch", 1, "architecture_getArch", "getArch()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_architecture_arch", 2, "architecture_getArch6432", "getArch6432()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_architecture_arch", 3, "architecture_getBits", "getBits()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_architecture_arch", 4, "architecture_getArchName", "getArchName()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_architecture_arch", 5, "architecture_getArchNameString", "getArchNameString()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_architecture_arch", 6, "architecture_getArchIdentifier", "getArchIdentifier()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_architecture_arch", 7, "architecture_getNumProcs", "getNumProcs()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_architecture_arch", 8, "architecture_getArchMHz", "getArchMHz()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_architecture", 2, "gcond_architecture_hardware", getText(lblHardware), false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_architecture_hardware", 0, "architecture_getBaseBoardManufacturer", "getBaseBoardManufacturer()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_architecture_hardware", 1, "architecture_getBaseBoardModel", "getBaseBoardModel()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_architecture_hardware", 2, "architecture_getVideoControllerID", "getVideoControllerID()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_architecture_hardware", 3, "architecture_getSoundDeviceID", "getSoundDeviceID()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_architecture_hardware", 4, "architecture_getNetworkAdapterID", "getNetworkAdapterID()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_architecture_hardware", 5, "architecture_getWirelessNetworkAdapterID", "getWirelessNetworkAdapterID()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_architecture_hardware", 6, "architecture_getModemID", "getModemID()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_architecture_hardware", 7, "architecture_getHDDControllerID", "getHDDControllerID()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_architecture_hardware", 8, "architecture_getCDROMID", "getCDROMID()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_architecture_hardware", 9, "architecture_getCDBurnerID", "getCDBurnerID()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_architecture_hardware", 10, "architecture_getCDBurnerName", "getCDBurnerName()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_architecture_hardware", 11, "architecture_hasDVDROM", "hasDVDROM()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_architecture_hardware", 12, "architecture_hasDVDBurner", "hasDVDBurner()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_architecture_hardware", 13, "architecture_hasDVDDrive", "hasDVDDrive()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_architecture_hardware", 14, "architecture_getKeyboardID", "getKeyboardID()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_architecture_hardware", 15, "architecture_getPointingDeviceID", "getPointingDeviceID()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_architecture_hardware", 99, "architecture_getSystemEnclosureType", "getSystemEnclosureType()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_architecture", 3, "gcond_architecture_system", getText(lblSystem), false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_architecture_system", 0, "architecture_getSysManufacturer", "getSysManufacturer()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_architecture_system", 1, "architecture_getSysModel", "getSysModel()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_architecture_system", 2, "architecture_getSysPCType", "getSysPCType()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_architecture_system", 3, "architecture_getSysType", "getSysType()", false, "", "");
GrayedConditionsMenuBar.addNewSeparator("architecture_getSysType", 4);
GrayedConditionsMenuBar.addNewChild("gcond_architecture_system", 5, "architecture_getFreeRAM", "getFreeRAM()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_architecture_system", 6, "architecture_getTotalRAM", "getTotalRAM()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_architecture", 4, "gcond_architecture_bios", getText(lblBIOS), false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_architecture_bios", 0, "architecture_getBIOSManufacturer", "getBIOSManufacturer()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_architecture_bios", 1, "architecture_getBIOSVersion", "getBIOSVersion()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_architecture_bios", 2, "architecture_getSMBIOSVersion", "getSMBIOSVersion()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_architecture_bios", 3, "architecture_getBIOSCaption", "getBIOSCaption()", false, "", "");
GrayedConditionsMenuBar.addNewSibling("gcond_architecture", "gcond_security", getText(lblSecurity), false);
GrayedConditionsMenuBar.addNewChild("gcond_security", 0, "security_isLogOnServer", "isLogOnServer()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_security", 1, "security_isUserDomain", "isUserDomain()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_security", 2, "security_isComputerName", "isComputerName()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_security", 3, "security_isUserName", "isUserName()", false, "", "");
GrayedConditionsMenuBar.addNewSeparator("security_isUserName", 4);
GrayedConditionsMenuBar.addNewChild("gcond_security", 5, "security_getFirewallProduct", "getFirewallProduct()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_security", 6, "security_getAntiVirusProduct", "getAntiVirusProduct()", false, "", "");
GrayedConditionsMenuBar.addNewSibling("gcond_security", "gcond_other", getText(lblOther), false);
GrayedConditionsMenuBar.addNewChild("gcond_other", 0, "other_ConnectedToInternet", "ConnectedToInternet()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_other", 1, "other_isInstalled", "isInstalled()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_other", 2, "other_getIEver", "getIEver()", false, "", "");
GrayedConditionsMenuBar.addNewChild("gcond_other", 3, "other_isDesktopLoaded", "isDesktopLoaded()", false, "", "");
GrayedConditionsMenuBar.setOverflowHeight(6);
}

with


function SetUpConditionMenuBar(menuId,whichCond,condHandler)
{
position="configwizard.js";
whatfunc="SetUpConditionMenuBar()";

var ConditionsMenuBar=new dhtmlXMenuObject(menuId,dhxSkin,true);
ConditionsMenuBar.setImagePath("../common/codebase/imgs/");
ConditionsMenuBar.setOpenMode("win");
ConditionsMenuBar.attachEvent("onClick",condHandler);

ConditionsMenuBar.addNewSibling(null, WhichCond + "_filesystem", getText(lblFileSystem), false);
ConditionsMenuBar.addNewChild(WhichCond + "_filesystem", 0, WhichCond + "_filesystem_file", getText(lblFile), false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_filesystem_file", 0, "filesystem_FileExists", "FileExists()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_filesystem_file", 1, "filesystem_getFileSize", "getFileSize()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_filesystem_file", 2, "filesystem_getFileType", "getFileType()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_filesystem_file", 3, "filesystem_getFileVersion", "getFileVersion()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_filesystem_file", 4, "filesystem_fileVersionGreaterThan", "fileVersionGreaterThan()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_filesystem", 1, WhichCond + "_filesystem_folder", getText(lblFolder), false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_filesystem_folder", 0, "filesystem_FolderExists", "FolderExists()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_filesystem_folder", 1, "filesystem_getFolderSize", "getFolderSize()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_filesystem", 2, WhichCond + "_filesystem_drive", getText(lblDrive), false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_filesystem_drive", 0, "filesystem_DriveExists", "DriveExists()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_filesystem_drive", 1, "filesystem_DriveType", "DriveType()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_filesystem_drive", 2, "filesystem_DriveVolumeName", "DriveVolumeName()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_filesystem_drive", 3, "filesystem_DriveShareName", "DriveShareName()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_filesystem_drive", 4, "filesystem_DriveFileSystem", "DriveFileSystem()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_filesystem_drive", 5, "filesystem_DriveAvailableSpace", "DriveAvailableSpace()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_filesystem_drive", 6, "filesystem_DriveTotalSize", "DriveTotalSize()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_filesystem", 3, "filesystem_getComSpec", "getComSpec()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_filesystem", 4, "filesystem_getEnvVar", "getEnvVar()", false, "", "");
ConditionsMenuBar.addNewSibling(WhichCond + "_filesystem", WhichCond + "_registry", getText(lblRegistry), false);
ConditionsMenuBar.addNewChild(WhichCond + "_registry", 0, "registry_RegKeyExists", "RegKeyExists()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_registry", 1, "registry_RegValueExists", "RegValueExists()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_registry", 2, "registry_RegKeyValue", "RegKeyValue()", false, "", "");
ConditionsMenuBar.addNewSibling(WhichCond + "_registry", WhichCond + "_architecture", getText(lblArchitecture), false);
ConditionsMenuBar.addNewChild(WhichCond + "_architecture", 0, WhichCond + "_architecture_os", getText(lblOperatingSystem), false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_architecture_os", 0, "architecture_getOSver", "getOSver()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_architecture_os", 1, "architecture_getOSvernum", "getOSvernum()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_architecture_os", 2, "architecture_getSPver", "getSPver()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_architecture_os", 3, "architecture_getOSlang", "getOSlang()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_architecture_os", 4, "architecture_getOSlocale", "getOSlocale()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_architecture", 1, WhichCond + "_architecture_arch", getText(lblArchitecture), false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_architecture_arch", 0, "architecture_getmshtaBits", "getmshtaBits()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_architecture_arch", 1, "architecture_getArch", "getArch()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_architecture_arch", 2, "architecture_getArch6432", "getArch6432()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_architecture_arch", 3, "architecture_getBits", "getBits()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_architecture_arch", 4, "architecture_getArchName", "getArchName()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_architecture_arch", 5, "architecture_getArchNameString", "getArchNameString()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_architecture_arch", 6, "architecture_getArchIdentifier", "getArchIdentifier()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_architecture_arch", 7, "architecture_getNumProcs", "getNumProcs()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_architecture_arch", 8, "architecture_getArchMHz", "getArchMHz()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_architecture", 2, WhichCond + "_architecture_hardware", getText(lblHardware), false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_architecture_hardware", 0, "architecture_getBaseBoardManufacturer", "getBaseBoardManufacturer()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_architecture_hardware", 1, "architecture_getBaseBoardModel", "getBaseBoardModel()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_architecture_hardware", 2, "architecture_getVideoControllerID", "getVideoControllerID()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_architecture_hardware", 3, "architecture_getSoundDeviceID", "getSoundDeviceID()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_architecture_hardware", 4, "architecture_getNetworkAdapterID", "getNetworkAdapterID()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_architecture_hardware", 5, "architecture_getWirelessNetworkAdapterID", "getWirelessNetworkAdapterID()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_architecture_hardware", 6, "architecture_getModemID", "getModemID()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_architecture_hardware", 7, "architecture_getHDDControllerID", "getHDDControllerID()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_architecture_hardware", 8, "architecture_getCDROMID", "getCDROMID()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_architecture_hardware", 9, "architecture_getCDBurnerID", "getCDBurnerID()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_architecture_hardware", 10, "architecture_getCDBurnerName", "getCDBurnerName()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_architecture_hardware", 11, "architecture_hasDVDROM", "hasDVDROM()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_architecture_hardware", 12, "architecture_hasDVDBurner", "hasDVDBurner()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_architecture_hardware", 13, "architecture_hasDVDDrive", "hasDVDDrive()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_architecture_hardware", 14, "architecture_getKeyboardID", "getKeyboardID()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_architecture_hardware", 15, "architecture_getPointingDeviceID", "getPointingDeviceID()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_architecture_hardware", 99, "architecture_getSystemEnclosureType", "getSystemEnclosureType()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_architecture", 3, WhichCond + "_architecture_system", getText(lblSystem), false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_architecture_system", 0, "architecture_getSysManufacturer", "getSysManufacturer()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_architecture_system", 1, "architecture_getSysModel", "getSysModel()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_architecture_system", 2, "architecture_getSysPCType", "getSysPCType()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_architecture_system", 3, "architecture_getSysType", "getSysType()", false, "", "");
ConditionsMenuBar.addNewSeparator("architecture_getSysType", 4);
ConditionsMenuBar.addNewChild(WhichCond + "_architecture_system", 5, "architecture_getFreeRAM", "getFreeRAM()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_architecture_system", 6, "architecture_getTotalRAM", "getTotalRAM()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_architecture", 4, WhichCond + "_architecture_bios", getText(lblBIOS), false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_architecture_bios", 0, "architecture_getBIOSManufacturer", "getBIOSManufacturer()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_architecture_bios", 1, "architecture_getBIOSVersion", "getBIOSVersion()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_architecture_bios", 2, "architecture_getSMBIOSVersion", "getSMBIOSVersion()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_architecture_bios", 3, "architecture_getBIOSCaption", "getBIOSCaption()", false, "", "");
ConditionsMenuBar.addNewSibling(WhichCond + "_architecture", WhichCond + "_security", getText(lblSecurity), false);
ConditionsMenuBar.addNewChild(WhichCond + "_security", 0, "security_isLogOnServer", "isLogOnServer()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_security", 1, "security_isUserDomain", "isUserDomain()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_security", 2, "security_isComputerName", "isComputerName()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_security", 3, "security_isUserName", "isUserName()", false, "", "");
ConditionsMenuBar.addNewSeparator("security_isUserName", 4);
ConditionsMenuBar.addNewChild(WhichCond + "_security", 5, "security_getFirewallProduct", "getFirewallProduct()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_security", 6, "security_getAntiVirusProduct", "getAntiVirusProduct()", false, "", "");
ConditionsMenuBar.addNewSibling(WhichCond + "_security", WhichCond + "_other", getText(lblOther), false);
ConditionsMenuBar.addNewChild(WhichCond + "_other", 0, "other_ConnectedToInternet", "ConnectedToInternet()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_other", 1, "other_isInstalled", "isInstalled()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_other", 2, "other_getIEver", "getIEver()", false, "", "");
ConditionsMenuBar.addNewChild(WhichCond + "_other", 3, "other_isDesktopLoaded", "isDesktopLoaded()", false, "", "");
ConditionsMenuBar.setOverflowHeight(6);
}

and replace


function HandleConditionsSelectionMenu(val)
{
position="configwizard.js";
whatfunc="HandleConditionsSelectionMenu()";

var txt="";

txt=document.getElementById(WhichCond).value;
txt += val;
document.getElementById(WhichCond).value=txt;

ConfigUpdated();

if (WhichCond=="cond")
moveCaretToEnd(this.document.all.cond);
else
moveCaretToEnd(this.document.all.gcond);
}

with


function HandleConditionsSelectionMenu(val)
{
position="configwizard.js";
whatfunc="HandleConditionsSelectionMenu()";

insertAtCaret(document.getElementById(WhichCond), val);

ConfigUpdated();
}

Edited by Francesco
Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.


×
×
  • Create New...