mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2025-10-27 08:49:27 +00:00
Implement templating to avoid copy/paste HTML code. #7
This commit is contained in:
@@ -17,7 +17,7 @@ $.getJSON('/api/spots', function(jsonData) {
|
||||
table.find('tbody').append($tr);
|
||||
});
|
||||
|
||||
$('#table-container-inner').html(table);
|
||||
$('#table-container').html(table);
|
||||
});
|
||||
|
||||
function escapeHtml(str) {
|
||||
|
||||
Reference in New Issue
Block a user