diff --git a/Application/Admin/View/User/rolelist.html b/Application/Admin/View/User/rolelist.html
index bad81eab1..bf47b39db 100644
--- a/Application/Admin/View/User/rolelist.html
+++ b/Application/Admin/View/User/rolelist.html
@@ -279,7 +279,7 @@ $(".select_gallery").select2();
})
});
$("#promote_level").change();
- var game_server = "{:I('server_name')}";
+ var game_id = "{:I('server_id')}";
$("#game_type").change(function(){
$.ajax({
url:"{:U('Ajax/getGmeServer')}",
@@ -287,13 +287,14 @@ $(".select_gallery").select2();
data:{sdk_version:$("#game_type option:selected").val(), game_name:$("#game_name option:selected").val()},
dataType:'json',
success:function(data){
+ console.log(data)
str = "";
for (var i in data){
- str += ""
+ str += ""
}
- $("#server_name").empty();
- $("#server_name").append(str);
- $("#server_name").select2();
+ $("#server_id").empty();
+ $("#server_id").append(str);
+ $("#server_id").select2();
}
})
});