]> git.ktnx.net Git - lsl.git/commitdiff
reset new list input upon list addition
authorDamyan Ivanov <dmn@debian.org>
Fri, 4 Mar 2022 20:54:00 +0000 (20:54 +0000)
committerDamyan Ivanov <dmn@debian.org>
Fri, 4 Mar 2022 20:54:00 +0000 (20:54 +0000)
public/javascripts/lsl.js

index 4395c05ba1d33b1d4cfa071fc79eded548784806..1c1febb5c7b35266401dc2b4f76773a261ecd805 100644 (file)
@@ -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)=>{