Fix list data not being replaced when switching lists
This commit is contained in:
parent
b63019bfac
commit
5ffd7bcd62
|
@ -49,6 +49,7 @@ function triggerSelect(listId) {
|
|||
url: '/lists/' + listId,
|
||||
headers: { 'Accept': 'text/html' }
|
||||
}).done(function(html) { $('#listHtml').html(html); });
|
||||
|
||||
$.ajax({
|
||||
url: '/lists/' + listId,
|
||||
headers: { 'Accept': 'application/json' }
|
||||
|
@ -61,7 +62,7 @@ function triggerSelect(listId) {
|
|||
mtime = new Date(list.mtime.secs_since_epoch * 1000);
|
||||
$('#listUpdatedAt').text('Laaste aanpassing op ' +
|
||||
mtime.toLocaleDateString("nl") + ' om ' + mtime.toLocaleTimeString("nl"));
|
||||
$('#listData').html(list.data);
|
||||
$('#listData').val(list.data);
|
||||
$('#editButton').show();
|
||||
});
|
||||
}
|
||||
|
@ -95,7 +96,7 @@ function saveUpdate(listId, data) {
|
|||
mtime = new Date(list.mtime.secs_since_epoch * 1000);
|
||||
$('#listUpdatedAt').text('Laaste aanpassing op ' +
|
||||
mtime.toLocaleDateString("nl") + ' om ' + mtime.toLocaleTimeString("nl"));
|
||||
$('#listData').html(list.data);
|
||||
$('#listData').val(list.data);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue