diff options
Diffstat (limited to 'public/js')
| -rw-r--r-- | public/js/maintenance.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/public/js/maintenance.js b/public/js/maintenance.js index 7406e0a..84ca8e1 100644 --- a/public/js/maintenance.js +++ b/public/js/maintenance.js | |||
| @@ -1,6 +1,11 @@ | |||
| 1 | function displayLogs(){ | 1 | function displayLogs(){ |
| 2 | const log_table = getElementOrThrow('log_table'); | 2 | const log_table = getElementOrThrow('log_table'); |
| 3 | console.log(log_table); | 3 | |
| 4 | // ouvrir, fermer, recharger | ||
| 5 | if(log_table.innerHTML != ''){ | ||
| 6 | log_table.innerHTML = ""; | ||
| 7 | return; | ||
| 8 | } | ||
| 4 | 9 | ||
| 5 | let fetcher = new Fetcher({ | 10 | let fetcher = new Fetcher({ |
| 6 | endpoint: 'index.php?action=get_logs', | 11 | endpoint: 'index.php?action=get_logs', |
