diff --git a/plugins/dynamix/Eth0.page b/plugins/dynamix/Eth0.page index d7b1565fb..0d3e702ec 100644 --- a/plugins/dynamix/Eth0.page +++ b/plugins/dynamix/Eth0.page @@ -215,11 +215,23 @@ function exitCode(form,key) { stopEvent = true; } } +function checkPort() { + $.post('/webGui/include/CheckPort.php',{port:'eth0'},function(text) { + showNotice(text); + setTimeout(checkPort,15000); + }); +} $(function() { var ctrl = ""; var form = document.eth0_settings; - $('#bond0').dropdownchecklist({emptyText:'None', width:130}); - $('#bridge0').dropdownchecklist({emptyText:'None', width:130}); + + $('#tab1').bind({click:function(){ + $('#bond0').dropdownchecklist('destroy').dropdownchecklist({emptyText:'None', width:131}); + $('#bridge0').dropdownchecklist('destroy').dropdownchecklist({emptyText:'None', width:131}); + }}); + + $('#bond0').dropdownchecklist({emptyText:'None', width:131}); + $('#bridge0').dropdownchecklist({emptyText:'None', width:131}); checkBondingSettings(form,0); checkBridgingSettings(form,0); checkNetworkAccess(form,'eth0'); @@ -236,6 +248,7 @@ $(function() { $('div[id=title]').append(ctrl); + checkPort(); });