mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
WebUI: Fix port strip icon for sfp ports
This commit is contained in:
1 parent
6d1380fb36
commit
723d16b4cb
1 file changed
+2
-1
+2
-1
@@ -936,6 +936,7 @@ function byPort(a){return a.sort(function(x,y){return x.portNum-y.portNum})}
|
|||||||
function pollStatus(){
|
function pollStatus(){
|
||||||
return getJSON("/status.json").then(function(s){
|
return getJSON("/status.json").then(function(s){
|
||||||
byPort(s);
|
byPort(s);
|
||||||
|
S.ports=s;
|
||||||
var now=Date.now();
|
var now=Date.now();
|
||||||
if(!S.n){
|
if(!S.n){
|
||||||
S.n=s.length;
|
S.n=s.length;
|
||||||
@@ -957,7 +958,7 @@ function pollStatus(){
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
S.prev=s;S.prevT=now;S.ports=s;
|
S.prev=s;S.prevT=now;
|
||||||
updateStrip();
|
updateStrip();
|
||||||
var hk=tabHooks[curTab];
|
var hk=tabHooks[curTab];
|
||||||
if(hk&&hk.status)hk.status();
|
if(hk&&hk.status)hk.status();
|
||||||
|
|||||||
Reference in new issue
Block a user