test
This commit is contained in:
parent
323b050cfc
commit
e8239d7e12
@ -216,4 +216,33 @@ $(document).ready(function () {
|
||||
};
|
||||
send_post_request('/api/setup-game', data);
|
||||
});
|
||||
|
||||
$('#game').on('change', function () {
|
||||
var map_list = [];
|
||||
|
||||
console.log(`reseting maps`);
|
||||
|
||||
map_list.push("cs_italy");
|
||||
map_list.push("cs_office");
|
||||
map_list.push("de_ancient");
|
||||
map_list.push("de_anubis");
|
||||
map_list.push("de_assembly");
|
||||
map_list.push("de_dust2");
|
||||
map_list.push("de_inferno");
|
||||
map_list.push("de_memento");
|
||||
map_list.push("de_mills");
|
||||
map_list.push("de_mirage");
|
||||
map_list.push("de_nuke");
|
||||
map_list.push("de_overpass");
|
||||
map_list.push("de_thera");
|
||||
map_list.push("de_vertigo");
|
||||
|
||||
$('#map').empty();
|
||||
|
||||
for (var i = 0; i < map_list.length; i++) {
|
||||
const opt = '<option value="' + map_list[i] + '">' + map_list[i] + '</option>'
|
||||
$('#map').append(opt);
|
||||
console.log(`adding ` + map_list[i]);
|
||||
}
|
||||
})
|
||||
});
|
||||
|
@ -1,32 +0,0 @@
|
||||
$(document).ready(function () {
|
||||
var map_list = [];
|
||||
|
||||
function update_maps() {
|
||||
|
||||
console.log(`reseting maps`);
|
||||
|
||||
map_list = [];
|
||||
map_list.push("cs_italy");
|
||||
map_list.push("cs_office");
|
||||
map_list.push("de_ancient");
|
||||
map_list.push("de_anubis");
|
||||
map_list.push("de_assembly");
|
||||
map_list.push("de_dust2");
|
||||
map_list.push("de_inferno");
|
||||
map_list.push("de_memento");
|
||||
map_list.push("de_mills");
|
||||
map_list.push("de_mirage");
|
||||
map_list.push("de_nuke");
|
||||
map_list.push("de_overpass");
|
||||
map_list.push("de_thera");
|
||||
map_list.push("de_vertigo");
|
||||
|
||||
$('#map').empty();
|
||||
|
||||
for (var i = 0; i < map_list.length; i++) {
|
||||
const opt = '<option value="' + map_list[i] + '">' + map_list[i] + '</option>'
|
||||
$('#map').append(opt);
|
||||
console.log(`adding ` + map_list[i]);
|
||||
}
|
||||
}
|
||||
});
|
Loading…
Reference in New Issue
Block a user