LSP: disabled limits tab if the server is not LTS

This commit is contained in:
Cat 2013-03-26 13:50:37 +01:00 committed by Thulinma
parent 92ed92ed70
commit 2282ec2dd8

View file

@ -62,6 +62,10 @@
// show correct tab // show correct tab
showTab($(this).text()); showTab($(this).text());
}); });
if (($(this).text() == "limits") && (settings.settings.LTS != 1)) {
$(this).remove();
}
}); });
// show login 'tab' and hide menu // show login 'tab' and hide menu
@ -1052,6 +1056,11 @@
break; break;
case 'limits': case 'limits':
if (settings.settings.LTS != 1) {
$('#page').html('Limits are not supported in your version. Buy the LTS! :)');
return;
}
$table = $('<table>'); $table = $('<table>');
$table.html("<thead><th>Type</th><th>Hard/soft</th><th>Value</th><th>applies to</th><th>Action</th></thead>"); $table.html("<thead><th>Type</th><th>Hard/soft</th><th>Value</th><th>applies to</th><th>Action</th></thead>");
$tbody = $('<tbody>'); $tbody = $('<tbody>');