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.
This commit is contained in:
Phil Davis 2014-12-20 23:01:21 +05:45 committed by Renato Botelho
parent 42647435de
commit 085d688987

View File

@ -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");