mirror of
https://github.com/skinnyrad/Lora-Scanner.git
synced 2026-03-28 17:43:00 +01:00
Feat: Adding refresh table button to survey mode
This commit is contained in:
@@ -62,11 +62,26 @@
|
||||
<tbody>
|
||||
<!-- Rows will be inserted here -->
|
||||
</tbody>
|
||||
</table>
|
||||
</table><br><br>
|
||||
<div style="text-align:center;">
|
||||
<button class="transmit-button" onclick="manualUpdateTable()">Refresh Table</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
let expandedRows = {};
|
||||
|
||||
function manualUpdateTable() {
|
||||
// Display a loading alert
|
||||
Swal.fire({
|
||||
title: 'Table Updated!',
|
||||
icon: 'success'
|
||||
});
|
||||
|
||||
updateTableData();
|
||||
}
|
||||
|
||||
function updateTableData() {
|
||||
fetch('/get_table_data')
|
||||
.then(response => response.json())
|
||||
|
||||
Reference in New Issue
Block a user