Changeset 13340


Ignore:
Timestamp:
12/02/09 09:58:02 (3 years ago)
Author:
eko
Message:

hotss support function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/router/kromo/dd-wrt/Hotspot.asp

    r13202 r13340  
    3636} 
    3737 
     38function setHotss(val) { 
     39        if (val == "1") { 
     40                //document.setup.chilli_enable[1].click(); 
     41                setElementsActive("chilli_enable", "chilli_additional", false); 
     42                show_layer_ext(this, 'idhotspotsys', true); 
     43                show_layer_ext(this, 'idchilli', false); 
     44                } 
     45        else { 
     46                setElementsActive("chilli_enable", "chilli_additional", true); 
     47                show_layer_ext(this, 'idhotspotsys', false); 
     48                show_layer_ext(this, 'idchilli', <% nvram_else_match("chilli_enable", "1", "1", "0"); %> == 1); 
     49                } 
     50} 
     51 
    3852 
    3953var update; 
     
    5367        show_layer_ext(document.setup.hotss_nobridge, 'idhotssdhcp', <% nvram_else_match("hotss_nobridge", "1", "1", "0"); %> == 1); 
    5468        show_layer_ext(document.setup.chilli_nowifibridge, 'idchillidhcp', <% nvram_else_match("chilli_nowifibridge", "1", "1", "0"); %> == 1); 
    55                          
     69        setHotss("<% nvram_else_match("hotss_enable", "1", "1", "0"); %>"); 
     70                 
    5671        update = new StatusbarUpdate(); 
    5772        update.start(); 
Note: See TracChangeset for help on using the changeset viewer.