LSP: disabled limits tab if the server is not LTS
This commit is contained in:
parent
92ed92ed70
commit
2282ec2dd8
1 changed files with 13 additions and 4 deletions
15
lsp/main.js
15
lsp/main.js
|
@ -62,6 +62,10 @@
|
|||
// show correct tab
|
||||
showTab($(this).text());
|
||||
});
|
||||
|
||||
if (($(this).text() == "limits") && (settings.settings.LTS != 1)) {
|
||||
$(this).remove();
|
||||
}
|
||||
});
|
||||
|
||||
// show login 'tab' and hide menu
|
||||
|
@ -879,7 +883,7 @@
|
|||
{
|
||||
var text = $(this).val();
|
||||
|
||||
/*
|
||||
/*
|
||||
if(text.charAt(0) == '/' || text.substr(0, 7) == 'push://')
|
||||
{
|
||||
$('#stream-edit-preset').val('');
|
||||
|
@ -889,7 +893,7 @@
|
|||
$('#stream-edit-preset').show();
|
||||
$('#stream-edit-preset-label').show();
|
||||
}
|
||||
*/
|
||||
*/
|
||||
|
||||
if(text.charAt(0) == '/')
|
||||
{
|
||||
|
@ -903,7 +907,7 @@
|
|||
})
|
||||
)
|
||||
)
|
||||
/*.append(
|
||||
/*.append(
|
||||
$('<label>').attr('id', 'stream-edit-preset-label').attr('for', 'stream-edit-preset').text('preset').append(
|
||||
$('<input>').attr('type', 'text').attr('placeholder', 'PRESET').attr('id', 'stream-edit-preset').attr('value', sdata.preset.cmd)
|
||||
)
|
||||
|
@ -1052,6 +1056,11 @@
|
|||
break;
|
||||
|
||||
case 'limits':
|
||||
if (settings.settings.LTS != 1) {
|
||||
$('#page').html('Limits are not supported in your version. Buy the LTS! :)');
|
||||
return;
|
||||
}
|
||||
|
||||
$table = $('<table>');
|
||||
$table.html("<thead><th>Type</th><th>Hard/soft</th><th>Value</th><th>applies to</th><th>Action</th></thead>");
|
||||
$tbody = $('<tbody>');
|
||||
|
|
Loading…
Add table
Reference in a new issue