]> git.ktnx.net Git - lsl.git/commitdiff
check lists and list versions after updating an item
authorDamyan Ivanov <dmn@debian.org>
Wed, 16 Feb 2022 17:16:22 +0000 (17:16 +0000)
committerDamyan Ivanov <dmn@debian.org>
Wed, 16 Feb 2022 17:16:22 +0000 (17:16 +0000)
public/javascripts/lsl.js

index ef6f9a88314e9c287e377e684faf6e5b3adbfcf5..b1956475564560cdb8397d394a332adb5de8aeaf 100644 (file)
@@ -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');