|
|
@@ -1,4 +1,4 @@
|
|
|
-<form id="logsForm" method="get" action="/console.logs.php">
|
|
|
+<form id="logsForm-<?= md5($console) ?>" method="get" action="/console.logs.php">
|
|
|
<input type="hidden" name="l" value="<?= $console ?>">
|
|
|
<div class="input-group mb-3">
|
|
|
<select class="form-control" name="limit">
|
|
|
@@ -24,7 +24,7 @@
|
|
|
<tbody>
|
|
|
<tr>
|
|
|
<td scope="row" style="background:#222;">
|
|
|
- <div id="logsResult" style="width:100%;height:100vh;overflow:auto;background:#222;color:#eee;padding:10px;"></div>
|
|
|
+ <div id="logsResult-<?= md5($console) ?>" style="width:100%;height:100vh;overflow:auto;background:#222;color:#eee;padding:10px;"></div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
</tbody>
|
|
|
@@ -33,11 +33,11 @@
|
|
|
<script>
|
|
|
$(function() {
|
|
|
function loadLogs() {
|
|
|
- $.get($("#logsForm").attr("action"), $("#logsForm").serialize(), function(data) {
|
|
|
- $("#logsResult").html(data);
|
|
|
+ $.get($("#logsForm-<?= md5($console) ?>").attr("action"), $("#logsForm-<?= md5($console) ?>").serialize(), function(data) {
|
|
|
+ $("#logsResult-<?= md5($console) ?>").html(data);
|
|
|
});
|
|
|
}
|
|
|
- $("#logsForm").on("submit", function(e) {
|
|
|
+ $("#logsForm-<?= md5($console) ?>").on("submit", function(e) {
|
|
|
e.preventDefault();
|
|
|
loadLogs();
|
|
|
});
|