From: Damyan Ivanov Date: Wed, 16 Feb 2022 17:17:23 +0000 (+0000) Subject: whitespace X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=dfeabddaac016f698fa33d8568131baa761a4c0f;p=lsl.git whitespace --- diff --git a/public/javascripts/lsl.js b/public/javascripts/lsl.js index e5ec5b3..7d0c4e0 100644 --- a/public/javascripts/lsl.js +++ b/public/javascripts/lsl.js @@ -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(''); }