From 2e0201e1e859f22b35e74987a0d8a9fca5c7ab0f Mon Sep 17 00:00:00 2001 From: Cat Date: Wed, 3 Apr 2013 14:16:05 +0200 Subject: [PATCH] LSP: removed unsupported limits and bugfixed limits tab not showing up despite having a LTS version --- lsp/functions.js | 5 ++++- lsp/main.js | 12 +++++------- lsp/server.html | 2 +- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/lsp/functions.js b/lsp/functions.js index e9892782..56427740 100644 --- a/lsp/functions.js +++ b/lsp/functions.js @@ -389,7 +389,10 @@ "capabilities": {}, "log": {}, "statistics": {} - }, d); + }, d) + if (settings.settings.LTS != 1) { + $('.LTSonly').remove(); + } } if(callback) { diff --git a/lsp/main.js b/lsp/main.js index da1d1ccb..e6dfc978 100644 --- a/lsp/main.js +++ b/lsp/main.js @@ -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 diff --git a/lsp/server.html b/lsp/server.html index 8051707e..9aefd675 100644 --- a/lsp/server.html +++ b/lsp/server.html @@ -38,7 +38,7 @@
  • overview
  • protocols
  • streams
  • -
  • limits
  • +
  • limits
  • logs
  • server stats
  • disconnect