From 6e795218c4807a0f865446eb8f0d6c01f0ba91ea Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Sat, 20 Dec 2014 23:01:21 +0545 Subject: Set Interfaces widget IPv6 address Now that get_interfacestatus() is returning us the IPv6 address, and interfaces.widget.php has a div to put it in, actually update the IPv6 address on the widget. --- usr/local/www/javascript/index/ajax.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'usr') diff --git a/usr/local/www/javascript/index/ajax.js b/usr/local/www/javascript/index/ajax.js index 47c1ee7..50e0145 100644 --- a/usr/local/www/javascript/index/ajax.js +++ b/usr/local/www/javascript/index/ajax.js @@ -156,14 +156,16 @@ function updateInterfaces(x){ jQuery('#' + details[0] + '-down').css("display","none"); jQuery('#' + details[0] + '-block').css("display","none"); jQuery('#' + details[0] + '-ip').html(details[2]); - jQuery('#' + details[0] + '-media').html(details[3]); + jQuery('#' + details[0] + '-ipv6').html(details[3]); + jQuery('#' + details[0] + '-media').html(details[4]); break; case "down": jQuery('#' + details[0] + '-down').css("display","inline"); jQuery('#' + details[0] + '-up').css("display","none"); jQuery('#' + details[0] + '-block').css("display","none"); jQuery('#' + details[0] + '-ip').html(details[2]); - jQuery('#' + details[0] + '-media').html(details[3]); + jQuery('#' + details[0] + '-ipv6').html(details[3]); + jQuery('#' + details[0] + '-media').html(details[4]); break; case "block": jQuery('#' + details[0] + '-block').css("display","inline"); -- cgit v1.1