Use proper server selector.
We need to use the one who fired event, not the first one in document.
This commit is contained in:
@@ -4,8 +4,8 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$('.server_selector').change(function() {
|
$('.server_selector').change(function(evt) {
|
||||||
var server = $('.server_selector').val();
|
var server = $(evt.target).val();
|
||||||
if (server == 'cur') {
|
if (server == 'cur') {
|
||||||
$(this).closest('tbody').children('.current-server').css('display', '');
|
$(this).closest('tbody').children('.current-server').css('display', '');
|
||||||
$(this).closest('tbody').children('.remote-server').css('display', 'none');
|
$(this).closest('tbody').children('.remote-server').css('display', 'none');
|
||||||
|
Reference in New Issue
Block a user