1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-07-31 12:41:08 +00:00

attach volume dropdown menu rearranged to show selected pool

This commit is contained in:
catborise 2018-10-25 09:57:41 +03:00
parent 1196fb38c9
commit 07984a2a9a
2 changed files with 9 additions and 4 deletions

View file

@ -1253,8 +1253,13 @@
select.removeChild(select.options[0]);
}
var input_sto = document.getElementById('selected_storage');
input_sto.value = pool;
var sto_drop = document.getElementById('select_storage');
sto_drop.value = pool;
sto_drop.innerHTML = pool + "<span class=\"caret\"></span>";
var sto_input = document.getElementById('selected_storage');
sto_input.value = pool;
sto_input.innerHTML = pool;
$.getJSON(vol_url, function(data) {
if (data.length > 0) {