LSP: removed unsupported limits and bugfixed limits tab not showing up despite having a LTS version

This commit is contained in:
Cat 2013-04-03 14:16:05 +02:00
parent 77bb9e76b1
commit 2e0201e1e8
3 changed files with 10 additions and 9 deletions

View file

@ -389,7 +389,10 @@
"capabilities": {},
"log": {},
"statistics": {}
}, d);
}, d)
if (settings.settings.LTS != 1) {
$('.LTSonly').remove();
}
}
if(callback)
{

View file

@ -31,14 +31,15 @@
['kb_total', 'Total bandwidth'],
['kbps_max', 'Current bandwidth'],
['users', 'Concurrent users'],
['streams', 'Cocurrent streams'],
['geo', 'Geolimited'],
['host', 'Hostlimited'],
['time', 'Timelimited'],
['host', 'Hostlimited']
];
/* Not currently supported but may return at a later time:
['duration', 'Duration'],
['str_kbps_min', 'Minimum bitrate'],
['str_kbps_max', 'Maximum bitrate']
];
/*
/**
@ -63,9 +64,6 @@
showTab($(this).text());
});
if (($(this).text() == "limits") && (settings.settings.LTS != 1)) {
$(this).remove();
}
});
// show login 'tab' and hide menu

View file

@ -38,7 +38,7 @@
<li class='selected'>overview</li>
<li>protocols</li>
<li>streams</li>
<li>limits</li>
<li class='LTSonly'>limits</li>
<li>logs</li>
<li>server stats</li>
<li id='logoutbutton'>disconnect</li>