tazpanel rev 535
network.cgi: hide wakeup button
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Aug 30 18:22:56 2015 +0200 (2015-08-30) |
parents | c0f8e615df7d |
children | a53b0b636b98 |
files | network.cgi |
line diff
1.1 --- a/network.cgi Sun Aug 30 18:07:27 2015 +0200 1.2 +++ b/network.cgi Sun Aug 30 18:22:56 2015 +0200 1.3 @@ -281,11 +281,11 @@ 1.4 </tr> 1.5 <tr id="wk1"><td>$(_ 'MAC address to wake up')</td> 1.6 <td><input type="text" name="macwakup" title="$(_ 'Leave empty for a general wakeup')" $PAR/><!-- 1.7 - --><button form="indexform" name="file" value="/etc/ethers" data-icon="view">$(_ 'List')</button> 1.8 + --><button form="indexform" name="file" title="$(_ 'Optional')" value="/etc/ethers" data-icon="view">$(_ 'List')</button> 1.9 </td> 1.10 </tr> 1.11 <tr id="wk2"><td>$(_ 'MAC/IP address password')</td> 1.12 - <td><input type="text" name="macpass" title="$(_ 'Leave empty for a general wakeup')" $PAR/><!-- 1.13 + <td><input type="text" name="macpass" $PAR/><!-- 1.14 --><button form="indexform" name="exec" value="ether-wake --help" data-icon="help">$(_ 'Help')</button> 1.15 </td> 1.16 </tr> 1.17 @@ -295,7 +295,7 @@ 1.18 <footer><!-- 1.19 --><button form="conf" type="submit" name="start_eth" data-icon="start" $start_disabled>$(_ 'Start' )</button><!-- 1.20 --><button form="conf" type="submit" name="stop" data-icon="stop" $stop_disabled >$(_ 'Stop' )</button><!-- 1.21 - --><button form="conf" type="submit" name="dowakeup" data-icon="clock" $stop_disabled >$(_ 'Wake up')</button><!-- 1.22 + --><button id="wk3" form="conf" type="submit" name="dowakeup" data-icon="clock" $stop_disabled >$(_ 'Wake up')</button><!-- 1.23 --></footer> 1.24 </section> 1.25 1.26 @@ -306,7 +306,7 @@ 1.27 document.getElementById('st' + i).style.display = enabled ? '' : 'none'; 1.28 } 1.29 enabled = document.getElementById('wakeup').checked; 1.30 - for (i = 1; i < 3; i++) { 1.31 + for (i = 1; i < 4; i++) { 1.32 document.getElementById('wk' + i).style.display = enabled ? '' : 'none'; 1.33 } 1.34 }