The branch, master has been updated via 980a3bb86c3a2025189b64b96372fd7eac0cf0ca (commit) from ccd8997f961056e66f91393b1d9ad45beb6d4eec (commit)
- Log ----------------------------------------------------------------- commit 980a3bb86c3a2025189b64b96372fd7eac0cf0ca Author: Michal Čihař michal@cihar.com Date: Tue Apr 20 08:13:27 2010 +0200
Use proper server selector.
We need to use the one who fired event, not the first one in document.
-----------------------------------------------------------------------
Summary of changes: js/server_synchronize.js | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/js/server_synchronize.js b/js/server_synchronize.js index 1b9138c..b360d15 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');
hooks/post-receive