Clean frontend code

This commit is contained in:
2023-05-24 11:08:15 +02:00
parent 2aaf993f7a
commit 8815f657e0
7 changed files with 42 additions and 345 deletions

View File

@@ -17,10 +17,9 @@ $('#btn-searchHistory').click(startSearch);
function loadHistory(dateFrom, dateTo){
var eventRequest = {
clientUUID : json[jsonIndex].clientUUID,
clientUUID : json.clientUUID,
localDateTimeFrom : dateFrom,
localDateTimeTo : dateTo,
mockedResponseId : json[jsonIndex].mockedResponseId
};
$.ajax({
url: host + '/api/event',
@@ -34,7 +33,7 @@ function loadHistory(dateFrom, dateTo){
}
function getLast24hHistoryData(){
$.getJSON(host + '/api/event/' + clientUUID + '/' + lastId, function(data){
$.getJSON(host + '/api/event/' + clientUUID, function(data){
historyJson = data;
displayHistory();
});