PasteCSV fix + code cleanup

This commit is contained in:
jokob-sk
2024-07-18 17:53:48 +10:00
parent 4a3598e840
commit db621a110e
11 changed files with 11 additions and 1397 deletions

View File

@@ -706,9 +706,9 @@ function ImportPastedCSV()
var csv = $('#modal-input-textarea').val();
csvBase64 = btoa(csv)
// Execute
$.get('php/server/devices.php?action=ImportCSV&content=', function(msg) {
showMessage (msg);
write_notification(`[Maintenance] Devices imported from pasted content`, 'info')
$.post('php/server/devices.php?action=ImportCSV', { content: csvBase64 }, function(msg) {
showMessage(msg);
write_notification(`[Maintenance] Devices imported from pasted content`, 'info');
});
}