diff --git a/components/wifi-manager/code.js b/components/wifi-manager/code.js index f18cb91f..971c3bd7 100644 --- a/components/wifi-manager/code.js +++ b/components/wifi-manager/code.js @@ -746,6 +746,15 @@ function getConfig() { } } else if (key == 'autoexec1') { $("textarea#autoexec1").val(data[key].value); + var re = / -o "?(\S+)\b/g; + var m = re.exec(data[key].value); + if (m[1] =='I2S') { + o_i2s.setAttribute("display","inline"); + } else if (m[1] =='SPDIF') { + o_spdif.setAttribute("display","inline"); + } else if (m[1] =='BT') { + o_bt.setAttribute("display","inline"); + } } else if (key == 'host_name') { $("input#dhcp-name1").val(data[key].value); $("input#dhcp-name2").val(data[key].value); diff --git a/components/wifi-manager/index.html b/components/wifi-manager/index.html index 96858653..fe1b6791 100644 --- a/components/wifi-manager/index.html +++ b/components/wifi-manager/index.html @@ -25,21 +25,37 @@
+ + + + + + + + + + + + + + + + - + - + - + - + - +
diff --git a/components/wifi-manager/style.css b/components/wifi-manager/style.css index 9e6a5d73..c279cda9 100644 --- a/components/wifi-manager/style.css +++ b/components/wifi-manager/style.css @@ -317,6 +317,11 @@ svg#battery { fill: #ddd; } +svg#output { + fill: #ddd; + padding-right: 4px; +} + ul#navbar { border-bottom: 0px; }