diff --git a/js/server_synchronize.js b/js/server_synchronize.js index 1b9138c18..b360d1564 100644 --- a/js/server_synchronize.js +++ b/js/server_synchronize.js @@ -4,8 +4,8 @@ * */ $(document).ready(function() { - $('.server_selector').change(function() { - var server = $('.server_selector').val(); + $('.server_selector').change(function(evt) { + var server = $(evt.target).val(); if (server == 'cur') { $(this).closest('tbody').children('.current-server').css('display', ''); $(this).closest('tbody').children('.remote-server').css('display', 'none');