T272 history loads last 24h upon click
This commit is contained in:
		| @@ -52,6 +52,13 @@ function loadHistory(dateFrom, dateTo){ | ||||
|     }); | ||||
| } | ||||
|  | ||||
| function getLast24hHistoryData(){ | ||||
|     $.getJSON(host + '/api/event/' + clientUUID + '/' + lastId, function(data){ | ||||
|         historyJson = data; | ||||
|         displayHistory(); | ||||
|     }); | ||||
| } | ||||
|  | ||||
| function historyToHtml(){ | ||||
|     var innerHTML = ''; | ||||
|     var iterations = historyJson.length <= maxIterations ? historyJson.length : maxIterations; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user