From 23ed578508542fd64eb3726506fba79159a13585 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sun, 6 Mar 2022 08:23:48 +0000 Subject: [PATCH] fix storage of list version to li.data() --- public/javascripts/lsl.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.5