* Fixed my fix to use data in the elements instead of divs, so the data doesn't show on the page.

Signed-off-by: Digimer <digimer@alteeve.ca>
main
Digimer 8 years ago
parent a8a98b431d
commit f7616e4bb6
  1. 7
      html/skins/alteeve/main.html
  2. 6
      html/skins/alteeve/main.js

@ -72,9 +72,6 @@
<!-- start network_footer -->
<input type="hidden" name="interface_list" id="interface_list" value="#!variable!interface_list!#" />
<div id="say_up">#!string!js_0001!#</div>
<div id="say_down">#!string!js_0002!#</div>
<div id="say_speed_suffix">#!string!js_0003!#</div>
</table>
<!-- end network_footer -->
@ -109,10 +106,10 @@
<td>
#!string!header_0003!#
</td>
<td>
<td id="network_link_state" data-up="#!string!js_0001!#" data-down="#!string!js_0002!#">
#!string!header_0004!#
</td>
<td>
<td id="network_link_speed" data-mbps="#!string!js_0003!#">
#!string!header_0005!#
</td>
</tr>

@ -1,7 +1,7 @@
$(function() {
var say_up = $("#say_up").text();
var say_down = $("#say_down").text();
var say_speed_suffix = $("#say_speed_suffix").text();
var say_up = $('#network_link_state').data('up');
var say_down = $('#network_link_state').data('down');
var say_speed_suffix = $('#network_link_speed').data('mbps');
console.log('say_up: ['+say_up+'], say_down: ['+say_down+'], say_speed_suffix: ['+say_speed_suffix+']');
if($("#network_status").length) {
//alert('network status exists.');

Loading…
Cancel
Save