Update list on change event
authorJoey Schulze <joey@infodrom.org>
Sun, 25 Oct 2015 10:56:22 +0000 (10:56 +0000)
committerJoey Schulze <joey@infodrom.org>
Sun, 25 Oct 2015 10:56:22 +0000 (10:56 +0000)
src/InfoCon/account/list.wml

index ca9b3fe..7bbbfa3 100644 (file)
@@ -178,6 +178,15 @@ function filter_popup()
                      'handle': 'div#filter_title'
                  }).css('top', '70px').css('left', '103px');
 
+                 $('#filter_popup form input,#filter_popup form select').not('input.button').change(function(e){
+                     $.post('list.php',
+                            'ajax=1&'+$('#filter_popup form').serialize(),
+                            function(data){
+                                $('table.border tbody').html(data);
+                            });
+                     return false;
+                 });
+
                  $('#filter_popup form input.button[type="submit"]').click(function(e){
                      $.post('list.php',
                             'ajax=1&'+$('#filter_popup form').serialize(),