From: Damyan Ivanov Date: Fri, 4 Mar 2022 20:54:00 +0000 (+0000) Subject: reset new list input upon list addition X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=a6947850247ccf28c74afa5ebe78fe8be0bc5a9f;p=lsl.git reset new list input upon list addition --- diff --git a/public/javascripts/lsl.js b/public/javascripts/lsl.js index 4395c05..1c1febb 100644 --- a/public/javascripts/lsl.js +++ b/public/javascripts/lsl.js @@ -215,6 +215,8 @@ function load_lists() { }); } function new_list_submission_done(data) { + $('input[name="list_name"]').val('').trigger('change'); + if (data.lists_version != lists_version) { load_lists() .done((d)=>{