From 980a3bb86c3a2025189b64b96372fd7eac0cf0ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 20 Apr 2010 08:13:27 +0200 Subject: [PATCH] Use proper server selector. We need to use the one who fired event, not the first one in document. --- js/server_synchronize.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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');