]> git.ktnx.net Git - lsl.git/commitdiff
whitespace
authorDamyan Ivanov <dmn@debian.org>
Wed, 16 Feb 2022 17:17:23 +0000 (17:17 +0000)
committerDamyan Ivanov <dmn@debian.org>
Wed, 16 Feb 2022 17:17:23 +0000 (17:17 +0000)
public/javascripts/lsl.js

index e5ec5b37300e1c44d5d10f715e728275eaaba2a2..7d0c4e03e630921a2743fad380d5f9d0d905ce8b 100644 (file)
@@ -109,14 +109,14 @@ function new_list_item_submission_done(data) {
 
     var item_data = selected_list.data('items');
 
-        var new_item = {
-            description: $('#new-list-item input[type="text"]').val().trim(),
-            done: $('#new-list-item input[type="checkbox"]').prop('checked'),
-            version: 1,
-        };
-        item_data.items.push(new_item);
-        add_list_item(new_item);
+    var new_item = {
+        description: $('#new-list-item input[type="text"]').val().trim(),
+        done: $('#new-list-item input[type="checkbox"]').prop('checked'),
+        version: 1,
+    };
+    item_data.items.push(new_item);
     item_data.version = data.version;
+    add_list_item(new_item);
 
     $('#new-list-item input').val('');
 }