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,
|
url: '/lists/' + listId,
|
||||||
headers: { 'Accept': 'text/html' }
|
headers: { 'Accept': 'text/html' }
|
||||||
}).done(function(html) { $('#listHtml').html(html); });
|
}).done(function(html) { $('#listHtml').html(html); });
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: '/lists/' + listId,
|
url: '/lists/' + listId,
|
||||||
headers: { 'Accept': 'application/json' }
|
headers: { 'Accept': 'application/json' }
|
||||||
|
@ -61,7 +62,7 @@ function triggerSelect(listId) {
|
||||||
mtime = new Date(list.mtime.secs_since_epoch * 1000);
|
mtime = new Date(list.mtime.secs_since_epoch * 1000);
|
||||||
$('#listUpdatedAt').text('Laaste aanpassing op ' +
|
$('#listUpdatedAt').text('Laaste aanpassing op ' +
|
||||||
mtime.toLocaleDateString("nl") + ' om ' + mtime.toLocaleTimeString("nl"));
|
mtime.toLocaleDateString("nl") + ' om ' + mtime.toLocaleTimeString("nl"));
|
||||||
$('#listData').html(list.data);
|
$('#listData').val(list.data);
|
||||||
$('#editButton').show();
|
$('#editButton').show();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -95,7 +96,7 @@ function saveUpdate(listId, data) {
|
||||||
mtime = new Date(list.mtime.secs_since_epoch * 1000);
|
mtime = new Date(list.mtime.secs_since_epoch * 1000);
|
||||||
$('#listUpdatedAt').text('Laaste aanpassing op ' +
|
$('#listUpdatedAt').text('Laaste aanpassing op ' +
|
||||||
mtime.toLocaleDateString("nl") + ' om ' + mtime.toLocaleTimeString("nl"));
|
mtime.toLocaleDateString("nl") + ' om ' + mtime.toLocaleTimeString("nl"));
|
||||||
$('#listData').html(list.data);
|
$('#listData').val(list.data);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user