1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-11-01 03:54:15 +00:00

console_listen_address not in the context, it's instance.console_listen_address. fixed by @wadefelix

This commit is contained in:
catborise 2022-08-23 08:40:36 +03:00
parent 33a7e30fc5
commit 6d3550bb24

View file

@ -255,21 +255,21 @@
});
$(document).ready(function () {
// set current console keymap or fall back to default
var keymap = "{{ console_keymap }}";
var keymap = "{{ instance.console_keymap }}";
if (keymap != '') {
$("#console_select_keymap option[value='" + keymap + "']").prop('selected', true);
}
});
$(document).ready(function () {
// set current console type or fall back to default
var console_type = "{{ console_type }}";
var console_type = "{{ instance.console_type }}";
if (console_type != '') {
$("#console_select_type option[value='" + console_type + "']").prop('selected', true);
}
});
$(document).ready(function () {
// set current console listen address or fall back to default
var console_listener_address = "{{ console_listener_address }}";
var console_listener_address = "{{ instance.console_listener_address }}";
if (console_listener_address != '') {
$("#console_select_listener_address option[value='" + console_listener_address + "']").prop('selected', true);
}