From d7c13bc02810038976dc5e7b7ceb4b57782ecdac Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Wed, 16 Feb 2022 17:16:22 +0000 Subject: [PATCH] check lists and list versions after updating an item --- public/javascripts/lsl.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/public/javascripts/lsl.js b/public/javascripts/lsl.js index ef6f9a8..b195647 100644 --- a/public/javascripts/lsl.js +++ b/public/javascripts/lsl.js @@ -143,7 +143,12 @@ function handle_list_item_state_changed(ev) { version: item_data.version, done: cb.prop('checked')}) } - ); + ) + .done(function(resp){ + item_data.version = resp.version; + got_lists_version(resp.lists_version); + got_list_version(resp.list_version); + }); } $(function(){ uri_base = $('#page').attr('lsl-uri-base'); -- 2.39.5