From: Damyan Ivanov Date: Sun, 6 Mar 2022 08:23:48 +0000 (+0000) Subject: fix storage of list version to li.data() X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=23ed578508542fd64eb3726506fba79159a13585;p=lsl.git fix storage of list version to li.data() --- diff --git a/public/javascripts/lsl.js b/public/javascripts/lsl.js index 260a282..e57005c 100644 --- a/public/javascripts/lsl.js +++ b/public/javascripts/lsl.js @@ -41,7 +41,8 @@ function got_list_version(new_version) { function load_list_items(uri, target) { $.get(uri) .done(item_data => { - target.data('items', item_data); + target.data('lsl-items', item_data.items); + target.data('lsl-version', item_data.version); // TODO: merge new items into existing ones // keep track of the last existing item, and append new one