///////////////////////////////////////////////////////////
//////////////////////ADD Hawcline////////////////////////
//////////////////////////////////////////////////////////
function uiOnChangeWLanActivated() {
uiWLanElementsEnable(uiOnChangeActivated("uiView_WLANActivated", "uiView_WLANActivated"));
}
function uiOnChangeActivated(idui, idpost) {
if (jslGetChecked(idui)) {
jslSetValue(idpost, "1");
return 1;
} else {
jslSetValue(idpost, "0");
return 0;
}
}
window.setTimeout("uiDoRefresh()", 10000);
////////////////////////////////////////////////////////////////////////////////////////////
function uiDoOnLoad() {
jslSetChecked("uiView1213", jslGetValue("uiPostAutochannel_plus") == "1");
jslCopyValue("uiView_SSID", "uiPost_SSID");
jslSetChecked("uiViewAutoprov", jslGetValue("uiPostAutoprov") == "1");
//-- Expert mode ---
uiShowExpertMode(g_expertMode);
jslSetChecked("uiView_ShowSSID", jslGetValue("uiPost_HideSSID") == "0");
jslSetSelection("uiView_PowerLevel", jslGetValue("uiPost_PowerLevel"));
jslSetChecked("uiView300MBitProSec", jslGetValue("uiPost_channelwidth")=="1");
if (g_expertMode == 0){
jslDisplay("ui300MBitProSec",false);
}
else {
jslDisplay("ui300MBitProSec",true);
}
SetBand(jslGetValue("uiPost_Mode"));
jslDisplay("uiViewINCL1213",( (jslGetValue("uiPost_Channel") == "0") && (g_Band != 5) ? true : false));
jslSetChecked("uiView_UserIsolation", jslGetValue("uiPost_UserIsolation") == "0");
jslSetChecked("uiViewTurbo", jslGetValue("uiPostTurbo") == "1");
jslSetChecked("uiViewAutoPower", jslGetValue("uiPostAutoPower") == "1");
if (g_Band == 5)
{
jslSetChecked("uiViewWmm", 1);
jslSetEnabled("uiViewWmm", 0);
}
else
{
jslSetChecked("uiViewWmm", jslGetValue("uiPostWmm") == "1");
jslSetEnabled("uiViewWmm", 1);
}
jslSetChecked("uiViewIpTv", jslGetValue("uiPostIPTV") == "1");
if (jslGetValue("uiPost_WLANActivated") == "1") {
jslSetChecked("uiView_WLANActivated", true);
uiWLanElementsEnable(1);
} else {
jslSetChecked("uiView_WLANActivated", false);
uiWLanElementsEnable(0);
}
}
////////////////////////////////////////////////////////
////////////////////END Hawcline////////////////////////
////////////////////////////////////////////////////////