smb.user.pid = 510; Ext.define('smb.store.language_extend',{ extend: 'Ext.data.Store', fields:['value', 'display'], data: [ {value:1, display: smb.charset.comboBox.chinese} ] }); Ext.define('smb.controller.extend', { extend: "Ext.app.Controller", init: function(){ var localProductInfo = "UN"; var localLanguageInfo = "en"; var localLockCountryID = false; var localCountryID = 511; if ("undefined" != typeof(productInfo)) { localProductInfo = productInfo[0]; localLanguageInfo = productInfo[1]; localLockCountryID = productInfo[2]; localCountryID = productInfo[3]; } if(localProductInfo === "CN"){ this.control({ /* STATUS */ "#stationGrid":{ beforerender: function(component){ component.columns[0].setWidth(35); component.columns[2].setWidth(80); component.columns[4].setWidth(70); component.columns[5].setWidth(55); component.columns[6].setWidth(95); component.columns[7].setWidth(90); component.columns[8].setWidth(90); component.columns[9].setWidth(95); } }, /* NETWORK */ "#nat":{ beforerender: function(component){ Ext.getCmp('nat_dmz_id').setWidth(330); Ext.getCmp('nat_vs_id').setWidth(330); Ext.getCmp('nat_pt_id').setWidth(330); Ext.getCmp('nat_upnp_id').setWidth(330); } }, "#networkSecurity":{ beforerender: function(component){ Ext.getCmp('networkSecurity_firewall_id').setWidth(200); Ext.getCmp('networkSecurity_ping_id').columns = 5; Ext.getCmp('networkSecurity_vpn_id').columns = 5; Ext.getCmp('packetsInterval').labelWidth = 175; Ext.getCmp('packetsInterval').setWidth(270); Ext.getCmp('icmpFlood').setWidth(180); Ext.getCmp('udpFlood').setWidth(180); Ext.getCmp('tcpSynFlood').setWidth(180); } }, "#accessControl":{ beforerender: function(component){ Ext.getCmp('acStatus').labelWidth = 55; Ext.getCmp('acPolicy').labelWidth = 55; } }, "#staticRouting":{ beforerender: function(component){ Ext.getCmp('staticEnable').labelWidth = 55; } }, "#bandWidthControl":{ beforerender: function(component){ Ext.getCmp('totalIngressBandwidth').labelWidth = 70; Ext.getCmp('totalIngressBandwidth').setWidth(170); Ext.getCmp('totalEgressBandwidth').labelWidth = 70; Ext.getCmp('totalEgressBandwidth').setWidth(170); Ext.getCmp('bwcStatus').labelWidth = 70; var bwGridCmp = Ext.getCmp('bandwidthGrid'); bwGridCmp.columns[1].flex = 4; bwGridCmp.columns[4].flex = 3; bwGridCmp.columns[5].flex = 3; bwGridCmp.columns[6].flex = 3; bwGridCmp.columns[7].flex = 3; } }, "#ipMacBinding":{ beforerender: function(component){ Ext.getCmp('ipMacEnable').labelWidth = 135; } }, "#pppoeDetailSetting": { beforerender: function(component){ Ext.getCmp('pppoeConnectionType').hide().disable(); Ext.getCmp('scStaticIp').hide().disable(); Ext.getCmp('scStaticMask').hide().disable(); } }, /* WIRELESS */ "#tdma":{ afterrender: function(){ Ext.getCmp('apRegion').hide(); Ext.getCmp('regionHelp').hide(); Ext.getCmp('dfsEnable').hide(); Ext.getCmp('transmitPowerHelp').hide(); }, beforerender: function(component){ Ext.getCmp('txPowerUnit').margin = "4 0 0 5"; } }, '#tdma combobox[id = apRegion]':{ change: function( scope, newValue, oldValue, eOpts){ Ext.getCmp("apRegion").clearListeners(); Ext.getCmp('dfsEnable').hide(); } }, "#wireMacFilter":{ beforerender: function(component){ Ext.getCmp('wireMacFilter_enable_id').labelWidth = 110; Ext.getCmp('wireMacFilter_rules_id').labelWidth = 110; } }, "#survey":{ beforerender: function(component){ Ext.getCmp('searchApCount').labelWidth = 50; } }, /*"#spectrumAnalysisBox combobox[id = frequencyRangeSltBox]":{ beforerender: function(component){ component.setValue('5700-6080'); component.inputWidth = 120; component.setReadOnly(true); }, change: function(scope, newValue, oldValue, eOpts){ Ext.getCmp('frequencyRangeSltBox').setValue('5700-6080'); } }, "#spectrumAnalysis combobox[id = frequencyRangeSlt]":{ beforerender: function(component){ component.setValue('5700-6080'); component.inputWidth = 120; component.setReadOnly(true); }, change: function(scope, newValue, oldValue, eOpts){ Ext.getCmp('frequencyRangeSlt').setValue('5700-6080'); } },*/ /* MANAGEMENT */ "#rssiLed":{ beforerender: function(component){ Ext.getCmp('rssiLed_label_id').setWidth(110); } }, /* SYSTEM */ "#deviceName combobox[id = language]":{ beforerender: function(component){ /* var app = this.application; app.getStore('language_extend'); component.bindStore('language_extend'); component.setReadOnly(true); */ } }, "#time":{ afterrender: function(){ Ext.getCmp('dstContainer').hide(); } }, /* QUICK SETUP */ "#apWlSetting combobox[id = apRegionQS]":{ show: function(Component , eOpts){ Ext.getCmp('apRegionQS').hide(); Ext.getCmp('dfsEnableQS').hide(); } }, "#apWlSetShow displayfield[id = apRegionShow]":{ show: function(){ Ext.getCmp('apRegionShow').hide(); Ext.getCmp('apDfsShow').hide(); } }, "#clientWlSet combobox[id = clientRegionQS]":{ show: function(Component , eOpts){ Ext.getCmp('clientRegionQS').hide(); } }, "#clientWlSetShow displayfield[id = clientRegionShow]":{ show: function(){ Ext.getCmp('clientRegionShow').hide(); } }, "#wlSearch":{ beforerender: function(component){ Ext.getCmp('searchApCountQS').labelWidth = 50; } }, /* TOOLS */ "#surveyBox":{ beforerender: function(component){ Ext.getCmp('surveyBoxApCount').labelWidth = 50; } }, "#show_about_id":{ beforerender: function(component){ Ext.getCmp('about_version_id').labelWidth = 90; Ext.getCmp('about_version_id').inputWidth = 260; } }, /* LOGIN */ "#loginPanel":{ beforerender: function(){ var loginRegionCmp = Ext.getCmp('loginRegion'); if( smb.user.firstLogin==true) { loginRegionCmp.getStore().loadData( [ {name: smb.charset.region.c156, value: 156} ] ) loginRegionCmp.setValue(156); loginRegionCmp.setReadOnly(true); } } }, "#loginPanel label[id=loginErrorDisplay]":{ beforerender: function(){ Ext.getCmp('loginErrorDisplay').style = "color: red; display: block; text-align: center;"; } }, '#loginPanel button[id=loginClear]': { afterrender: function(component){ var loginClearCmp = Ext.getCmp("loginClear"); loginClearCmp.removeManagedListener(loginClearCmp.el, "click"); loginClearCmp.addManagedListener(loginClearCmp.el, "click", function(btn, event){ Ext.getCmp('loginUsername').setValue(''); Ext.getCmp('loginPassword').setValue(''); Ext.getCmp('loginUsername').clearInvalid(); Ext.getCmp('loginPassword').clearInvalid(); } ); } } }); } else if(localProductInfo === "US"){ this.control({ /* LOGIN */ "#loginPanel":{ beforerender: function(){ var loginRegionCmp = Ext.getCmp('loginRegion'); if( smb.user.firstLogin==true) { loginRegionCmp.getStore().loadData( [ {name: smb.charset.region.c840, value: 840} ] ) loginRegionCmp.setValue(840); loginRegionCmp.setReadOnly(true); } } }, }); } else if (localProductInfo === "EU") { if(localLockCountryID == true){ //dataFor2G = regionsForEU; //dataFor5G = regionsForEU; this.control({ /* LOGIN */ "#loginPanel":{ beforerender: function(){ var loginRegionCmp = Ext.getCmp('loginRegion'); if( smb.user.firstLogin==true) { loginRegionCmp.getStore().loadData( [ {name: smb.charset.region.c276, value: 276} ] ) loginRegionCmp.setValue(276); loginRegionCmp.setReadOnly(true); } } }, }); } } if (localLanguageInfo === "zh_CN") { var fontsize = "25px"; var fontweight = "normal"; document.getElementById('quickSet_tab').style.fontSize = fontsize; document.getElementById('tpNetwork_tab').style.fontSize = fontsize; document.getElementById('wireless_tab').style.fontSize = fontsize; document.getElementById('management_tab').style.fontSize = fontsize; document.getElementById('system_tab').style.fontSize = fontsize; document.getElementById('sysStatus_tab').style.fontSize = fontsize; document.getElementById('quickSet_tab').style.fontWeight = fontweight; document.getElementById('tpNetwork_tab').style.fontWeight = fontweight; document.getElementById('wireless_tab').style.fontWeight = fontweight; document.getElementById('management_tab').style.fontWeight = fontweight; document.getElementById('system_tab').style.fontWeight = fontweight; document.getElementById('sysStatus_tab').style.fontWeight = fontweight; } if (localLanguageInfo === "ru") { this.control({ /* SYSTEM */ "#deviceName":{ beforerender : function(component){ Ext.getCmp("language").labelWidth = 180; Ext.getCmp("deviceNameLabel").labelWidth = 180; } }, "#userAccount":{ beforerender : function(component){ component.setHeight(285); Ext.getCmp("curUserName").labelWidth = 180; Ext.getCmp("curPassword").labelWidth = 180; Ext.getCmp("newUserName").labelWidth = 180; Ext.getCmp("newPwd").labelWidth = 180; Ext.getCmp("confirmNewPwd").labelWidth = 180; } }, "#time" : { beforerender : function(component){ component.setHeight(285); Ext.getCmp("daylightShow").setWidth(80); Ext.getCmp("getGmt").setWidth(230); Ext.getCmp("synchronizeClock").setWidth(230); Ext.getCmp("synchronizeClock").margin = "5 0 0 165"; } }, "#firmware" : { beforerender : function(component){ Ext.getCmp("version").labelWidth = 200; Ext.getCmp("versionWare").labelWidth = 200; } }, "#configuration" : { beforerender : function(component){ Ext.getCmp("backupLabel").labelWidth = 200; Ext.getCmp("backupBtn").setWidth(160); Ext.getCmp("updateConfigLabel").labelWidth = 200; Ext.getCmp("resetBtnLabel").labelWidth = 200; Ext.getCmp("resetBtn").setWidth(100); Ext.getCmp("rebootBtnLabel").labelWidth = 200; Ext.getCmp("rebootBtn").setWidth(100); } }, /* Wireless */ "#wireMacFilter" : { beforerender : function(component){ Ext.getCmp("wireMacFilter_enable_id").labelWidth = 160; Ext.getCmp("wireMacFilter_rules_id").labelWidth = 160; } }, "#survey":{ beforerender: function(component){ Ext.getCmp('searchApCount').labelWidth = 135; Ext.getCmp('searchApCount').margin = '0 370 0 0'; Ext.getCmp('securityLock').setWidth(180); } }, /* Network */ "#ipMacBinding" :{ beforerender : function(component){ Ext.getCmp("ipMacEnable").labelWidth = 210; } }, "#nat" : { beforerender : function(component){ Ext.getCmp("nat_dmz_id").setWidth(360); Ext.getCmp("nat_vs_id").setWidth(360); Ext.getCmp("nat_pt_id").setWidth(360); Ext.getCmp("nat_upnp_id").setWidth(360); } }, "#wan" : { beforerender : function(component){ Ext.getCmp("cloneFromPcsMacAddress").setWidth(240); Ext.getCmp("factoryMac").setWidth(240); } }, "#networkSecurity" : { beforerender : function(component){ Ext.getCmp("networkSecurity_firewall_id").setWidth(320); Ext.getCmp("networkSecurity_firewall_id").labelWidth = 120; Ext.getCmp("networkSecurity_ping_id").labelWidth = 120; Ext.getCmp("networkSecurity_vpn_id").labelWidth = 120; Ext.getCmp("wanPingForbidden").setWidth(183); Ext.getCmp("lanPingForbidden").setWidth(400); Ext.getCmp("dosProtection").labelWidth = 130; Ext.getCmp("packetsInterval").margin = '0 0 5 160'; Ext.getCmp("icmpFlood").margin = '0 0 0 160'; Ext.getCmp("udpFlood").margin = '0 0 0 160'; Ext.getCmp("tcpSynFlood").margin = '0 0 0 160'; Ext.getCmp("dosListBtn").margin = '0 0 0 160'; Ext.getCmp("icmpFloodLabel").setWidth(100); Ext.getCmp("udpFloodLabel").setWidth(100); Ext.getCmp("tcpSynFloodLabel").setWidth(100); } }, "#staticRouting" : { beforerender : function(component){ Ext.getCmp("staticEnable").labelWidth = 175; } }, "#accessControl" : { beforerender : function(component){ Ext.getCmp("acStatus").labelWidth = 140; Ext.getCmp("acPolicy").labelWidth = 140; } }, "#bandWidthControl" : { beforerender : function(component){ Ext.getCmp("totalIngressBandwidth").labelWidth = 210; Ext.getCmp("totalEgressBandwidth").labelWidth = 220; Ext.getCmp("bwcStatus").labelWidth = 210; } }, "#lan" : { beforerender : function(component){ Ext.getCmp("lanEndIpAddress").labelWidth = 210; Ext.getCmp("lanDefaultDomain").labelWidth = 210; Ext.getCmp("lanSecondaryDns").labelWidth = 210; } }, /* Management */ "#webserver" : { beforerender : function(component){ var myWidth = 200; Ext.getCmp("secureConnEnable").labelWidth = 200; Ext.getCmp("secureServerPort").labelWidth = 200; Ext.getCmp("webServerPort").labelWidth = 200; Ext.getCmp("remoteIp").labelWidth = 200; Ext.getCmp("macAuthChkEnable").labelWidth = 200; Ext.getCmp("sessionTimeout").labelWidth = 200; Ext.getCmp("mac1").labelWidth= myWidth; Ext.getCmp("mac2").labelWidth= myWidth; Ext.getCmp("mac3").labelWidth= myWidth; Ext.getCmp("mac4").labelWidth= myWidth; Ext.getCmp("addPcMac").margin = '3 0 0 205'; } }, "#ping" : { beforerender : function(component){ /* Ext.getCmp("pingChkEnable").labelWidth = 200; Ext.getCmp("pingIpLabel").labelWidth = 200; Ext.getCmp("pingInterval").labelWidth = 200; Ext.getCmp("startUpDelay").labelWidth = 200; Ext.getCmp("rebootCount").labelWidth = 200; */ } }, "#log" : { beforerender : function(component){ Ext.getCmp("logOpenLabel").setWidth(250); Ext.getCmp("logDownloadLabel").setWidth(250); Ext.getCmp("logMailSetLabel").setWidth(250); Ext.getCmp("mailAuthShow").labelWidth = 250; } }, "#autoMail" : { beforerender : function(component){ Ext.getCmp("mailSave").setWidth(80); } }, /* STATUS */ "#wirelessInfoContent" : { beforerender : function(component){ var myWidth = 220; Ext.getCmp("tdmaLabel").labelWidth = myWidth; Ext.getCmp("infoRegion").labelWidth = myWidth; Ext.getCmp("channelLabel").labelWidth = myWidth; Ext.getCmp("channelWidthLabel").labelWidth = myWidth; Ext.getCmp("modeLabel").labelWidth = myWidth; Ext.getCmp("maxTxRateLabel").labelWidth = myWidth; Ext.getCmp("txPowerLabel").labelWidth = myWidth; Ext.getCmp("ackTimeoutLabel").labelWidth = myWidth; } }, "#radioModeInfoContents" : { beforerender : function(component){ var myWidth = 220; Ext.getCmp("apEnableLabel").labelWidth = myWidth; Ext.getCmp("apMacAddrLabel").labelWidth = myWidth; Ext.getCmp("apSsidLabel").labelWidth = myWidth; Ext.getCmp("apSecurityLabel").labelWidth = myWidth; Ext.getCmp("apConnectedStations").labelWidth = myWidth; Ext.getCmp("clientEnableLabel").labelWidth = myWidth; Ext.getCmp("clientMacAddrLabel").labelWidth = myWidth; Ext.getCmp("clientSecurityLabel").labelWidth = myWidth; Ext.getCmp("clientWdsLabel").labelWidth = myWidth; Ext.getCmp("rootApBssid").labelWidth = myWidth; Ext.getCmp("rootApSsid").labelWidth = myWidth; Ext.getCmp("clientTxRate").labelWidth = myWidth; Ext.getCmp("clientRxRate").labelWidth = myWidth; Ext.getCmp("clientConnTime").labelWidth = myWidth; } }, "#monitorCnt" : { beforerender : function(component){ Ext.getCmp("autoRefreshStation").margin = '10 0 0 703'; Ext.getCmp("autoRefreshInterface").margin = '10 0 0 703'; Ext.getCmp("autoRefreshArptable").margin = '10 0 0 703'; Ext.getCmp("autoRefreshRoutes").margin = '10 0 0 703'; Ext.getCmp("autoRefreshDhcpClients").margin = '10 0 0 703'; } }, /* Tool */ "#surveyBox" : { beforerender : function(component){ Ext.getCmp("surveyBoxApCount").labelWidth = 135; } }, "#toolCombo" : { beforerender : function(component){ Ext.getCmp("saveTip").setWidth(740); } }, /* LOGIN */ "#loginPanel" : { beforerender : function(component){ Ext.getCmp("userTerms").setHeight(150); component.setHeight(380); } }, "#regionConfirmMsg" : { beforerender : function(component){ component.setHeight(250); } }, /* QUICKSETUP */ "#quickSetup" : { beforerender : function(component){ Ext.getCmp("apRadio").boxLabelCls = 'quickSetup-label-shift'; Ext.getCmp("clientRadio").boxLabelCls = 'quickSetup-label-shift'; Ext.getCmp("repeaterRadio").boxLabelCls = 'quickSetup-label-shift'; Ext.getCmp("bridgeRadio").boxLabelCls = 'quickSetup-label-shift'; Ext.getCmp("apRouterRadio").boxLabelCls = 'quickSetup-label-shift'; Ext.getCmp("apClientRadio").boxLabelCls = 'quickSetup-label-shift'; } }, "#qSetAC" : { beforerender : function(component){ component.setHeight(610); Ext.getCmp('apFinish').setHeight(540); } }, "#wlSearch" : { beforerender : function(component){ Ext.getCmp('searchApCountQS').labelWidth = 135; Ext.getCmp('searchLock').setWidth(180); } } }) } if (localLanguageInfo === "es") { var fontsize = "15px"; document.getElementById('quickSet_tab').style.fontSize = "14px"; document.getElementById('tpNetwork_tab').style.fontSize = fontsize; document.getElementById('wireless_tab').style.fontSize = fontsize; document.getElementById('management_tab').style.fontSize = "14px"; document.getElementById('system_tab').style.fontSize = fontsize; document.getElementById('sysStatus_tab').style.fontSize = fontsize; document.getElementById('quickSet_tab').style.lineHeight = "18px"; this.control({ /* Tool */ "#toolCombo" : { beforerender : function(component){ Ext.getCmp("saveTip").setWidth(740); } }, "#surveyBox" : { beforerender : function(component){ Ext.getCmp("surveyBoxApCount").labelWidth = 90; } }, /* SYSTEM */ "#configuration" : { beforerender : function(component){ Ext.getCmp("restoreBtn").setWidth(90); Ext.getCmp("backupBtn").setWidth(130); Ext.getCmp("resetBtn").setWidth(90); Ext.getCmp("rebootBtn").setWidth(90); Ext.getCmp("backupLabel").labelWidth = 200; Ext.getCmp("updateConfigLabel").labelWidth = 127; Ext.getCmp("resetBtnLabel").labelWidth = 310; } }, "#time" : { beforerender : function(component){ Ext.getCmp("daylightShow").setWidth(90); Ext.getCmp("getGmt").setWidth(85); Ext.getCmp("synchronizeClock").setWidth(145); } }, "#userAccount":{ beforerender : function(component){ //component.setHeight(285); var labelWidth = 170; Ext.getCmp("curUserName").labelWidth = labelWidth; Ext.getCmp("curPassword").labelWidth = labelWidth; Ext.getCmp("newUserName").labelWidth = labelWidth; Ext.getCmp("newPwd").labelWidth = labelWidth; Ext.getCmp("confirmNewPwd").labelWidth = labelWidth; } }, /* MANAGEMENT */ "#ddns" : { beforerender : function(component){ Ext.getCmp("ddnsLogin").setWidth(110); Ext.getCmp("ddnsLogout").setWidth(100); } }, "#webserver" : { beforerender : function(component){ Ext.getCmp("addPcMac").margin = '3 0 0 165'; } }, "#firmware" : { beforerender : function(component){ Ext.getCmp("updateWare").setWidth(90); } }, /* Network */ "#ipMacBinding" :{ beforerender : function(component){ Ext.getCmp("ipMacEnable").labelWidth = 120; } }, "#log" :{ beforerender : function(component){ Ext.getCmp("logMailSet").setWidth(90); Ext.getCmp("sysLogDownload").setWidth(90); Ext.getCmp("sysLogOpen").setWidth(90); } }, /* QUICKSETUP */ "#quickSetup" : { beforerender : function(component){ Ext.getCmp("apRadio").boxLabelCls = 'quickSetup-label-shift'; Ext.getCmp("clientRadio").boxLabelCls = 'quickSetup-label-shift'; Ext.getCmp("repeaterRadio").boxLabelCls = 'quickSetup-label-shift'; Ext.getCmp("bridgeRadio").boxLabelCls = 'quickSetup-label-shift'; Ext.getCmp("apRouterRadio").boxLabelCls = 'quickSetup-label-shift'; Ext.getCmp("apClientRadio").boxLabelCls = 'quickSetup-label-shift'; } }, "#wlSearch" : { beforerender : function(component){ Ext.getCmp('searchApCountQS').labelWidth = 90; Ext.getCmp('searchLock').setWidth(150); } }, "#qSetAC" : { beforerender : function(component){ Ext.getCmp('lanMaskShow').labelWidth = 153; Ext.getCmp('lanIpShow').labelWidth = 153; Ext.getCmp('clientWlSearchBtn').setWidth(80); component.setHeight(570); Ext.getCmp('apFinish').setHeight(500); } }, /* STATUS */ "#wanInfoContent" : { beforerender : function(component){ var labelWidth = 190; Ext.getCmp("wanConnTypeLabel").labelWidth = labelWidth; Ext.getCmp("wanMacAddrLabel").labelWidth = labelWidth; Ext.getCmp("wanIpAddressLabel").labelWidth = labelWidth; Ext.getCmp("wanSubnetMaskLabel").labelWidth = labelWidth; Ext.getCmp("wanDefaultGatewayLabel").labelWidth = labelWidth; Ext.getCmp("wanDnsServerLabel").labelWidth = labelWidth; Ext.getCmp("wanPort1").labelWidth = labelWidth; } }, "#monitorCnt" : { beforerender : function(component){ Ext.getCmp("autoRefreshStation").margin = '10 0 0 733'; Ext.getCmp("autoRefreshInterface").margin = '10 0 0 733'; Ext.getCmp("autoRefreshArptable").margin = '10 0 0 733'; Ext.getCmp("autoRefreshRoutes").margin = '10 0 0 733'; Ext.getCmp("autoRefreshDhcpClients").margin = '10 0 0 733'; } }, "#modeCombo" : { beforerender : function(component){ component.setWidth(250); component.labelWidth = 120; component.margin = '0 10 0 0'; } }, /* NETWORK */ "#wan" : { beforerender : function(component){ Ext.getCmp("factoryMac").setWidth(170); Ext.getCmp("cloneFromPcsMacAddress").setWidth(170); } }, "#networkSecurity" : { beforerender : function(component){ Ext.getCmp("networkSecurity_firewall_id").setWidth(230); Ext.getCmp('networkSecurity_vpn_id').columns = 3; Ext.getCmp("tcpSynFlood").setWidth(230); Ext.getCmp("icmpFlood").setWidth(230); Ext.getCmp("udpFlood").setWidth(230); Ext.getCmp("packetsInterval").labelWidth = 225; Ext.getCmp("packetsIntervalLabel").margin = '3 0 0 35'; } }, "#accessControl" : { beforerender : function(component){ Ext.getCmp('acStatus').labelWidth = 105; Ext.getCmp("acPolicy").setWidth(900); Ext.getCmp("acDenyPolicy").setWidth(800); } }, "#staticRouting" : { beforerender : function(component){ Ext.getCmp("staticEnable").labelWidth = 100; } }, "#bandWidthControl" : { beforerender : function(component){ Ext.getCmp("totalIngressBandwidth").labelWidth = 190; Ext.getCmp("totalEgressBandwidth").labelWidth = 190; } }, "#survey" : { beforerender : function(component){ Ext.getCmp("searchApCount").labelWidth = 90; Ext.getCmp('searchApCount').margin = '0 400 0 0'; Ext.getCmp('securityLock').setWidth(150); } }, /* LOGIN */ "#loginPanel" : { beforerender : function(component){ Ext.getCmp("userTerms").setHeight(150); Ext.getCmp("loginSubmit").setWidth(100); Ext.getCmp("loginCfmCnt").margin = "10 0 0 10"; component.setHeight(380); } }, "#regionConfirmMsg" : { beforerender : function(component){ component.setHeight(240); } } }); } if(localLockCountryID == true){ this.control({ /* WIRELESS */ "#tdma":{ afterrender: function(){ Ext.getCmp('apRegion').hide(); Ext.getCmp('regionHelp').hide(); } }, '#tdma combobox[id = apRegion]':{ change: function( scope, newValue, oldValue, eOpts){ Ext.getCmp("apRegion").clearListeners(); } }, /* STATUS */ "#wirelessInfoContent":{ afterrender: function(){ Ext.getCmp('infoRegion').hide(); } }, /* QUICK SETUP */ "#apWlSetting combobox[id = apRegionQS]":{ show: function(Component , eOpts){ Ext.getCmp('apRegionQS').hide(); } }, "#apWlSetShow displayfield[id = apRegionShow]":{ show: function(){ Ext.getCmp('apRegionShow').hide(); } }, "#clientWlSet combobox[id = clientRegionQS]":{ show: function(Component , eOpts){ Ext.getCmp('clientRegionQS').hide(); } }, "#clientWlSetShow displayfield[id = clientRegionShow]":{ show: function(){ Ext.getCmp('clientRegionShow').hide(); } }, /* LOGIN */ "#loginPanel":{ beforerender: function(){ var loginRegionCmp = Ext.getCmp('loginRegion'); if( smb.user.firstLogin==true) { if(smb.user.is2G == true) { loginRegionCmp.getStore().loadData(dataFor2G); } else { loginRegionCmp.getStore().loadData(dataFor5G); } if (localProductInfo == "UN") loginRegionCmp.setValue(localCountryID); loginRegionCmp.setReadOnly(true); } Ext.getCmp('loginRegion').hide(); if (localProductInfo == "US") Ext.getCmp('userTerms').html = smb.charset.tip.regionConfirmContentUs; else if (localProductInfo == "EU") Ext.getCmp('userTerms').html = smb.charset.tip.regionConfirmContentEu; } }, '#loginPanel button[id=loginClear]': { afterrender: function(component){ var loginClearCmp = Ext.getCmp("loginClear"); loginClearCmp.removeManagedListener(loginClearCmp.el, "click"); loginClearCmp.addManagedListener(loginClearCmp.el, "click", function(btn, event){ Ext.getCmp('loginUsername').setValue(''); Ext.getCmp('loginPassword').setValue(''); Ext.getCmp('loginUsername').clearInvalid(); Ext.getCmp('loginPassword').clearInvalid(); } ); } } }); } } })