Implement updating the list while editing it
This commit is contained in:
parent
85e25a9b5c
commit
787839e36f
|
@ -68,6 +68,16 @@ function triggerSelect(listId) {
|
|||
|
||||
function triggerUpdate(listId, data) {
|
||||
console.debug('Triggering HTML update for list ' + listId + ', data: ' + data);
|
||||
listCopy = Object.assign({}, curList);
|
||||
listCopy.data = data;
|
||||
|
||||
$.ajax({
|
||||
method: 'POST',
|
||||
url: '/lists',
|
||||
headers: { 'Accept': 'text/html',
|
||||
'Content-Type': 'application/json' },
|
||||
data: JSON.stringify(listCopy)
|
||||
}).done(function(html) { $("#listHtml").html(html) });
|
||||
}
|
||||
|
||||
function saveUpdate(listId, data) {
|
||||
|
|
Loading…
Reference in New Issue