From a6947850247ccf28c74afa5ebe78fe8be0bc5a9f Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Fri, 4 Mar 2022 20:54:00 +0000 Subject: [PATCH] reset new list input upon list addition --- public/javascripts/lsl.js | 2 ++ 1 file changed, 2 insertions(+) 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)=>{ -- 2.39.5