mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-02 08:56:07 +00:00
fix(instances): boot order, root password and NIC changes say what they did
A boot device moved up or down was rebuilt without its click handler, so unticking it afterwards left it in the boot order that was applied; the moved label now keeps its checkbox. An empty root password did nothing and said nothing; it is refused with a message. Changing a NIC of a shut-off VM gave no confirmation; it now says the device changed.
This commit is contained in:
parent
d696820120
commit
c26e9a49c4
4 changed files with 22 additions and 8 deletions
|
|
@ -290,10 +290,9 @@
|
|||
var label = $(this).parent();
|
||||
var newPos = label.index() - 1;
|
||||
if (newPos > -1) {
|
||||
$('#b_order label').eq(newPos).before("<label><input type='checkbox' value='"+$(this).val()+"' name='"+$(this).val()+"' checked>"+$(this).parent().text()+"</label>");
|
||||
label.remove();
|
||||
// moved, not rebuilt: the checkbox keeps its handler
|
||||
$('#b_order label').eq(newPos).before(label);
|
||||
}
|
||||
$(".multiselect").multiselect();
|
||||
});
|
||||
set_orderlist($("#bootorder"));
|
||||
});
|
||||
|
|
@ -305,10 +304,8 @@
|
|||
var label = $(this).parent();
|
||||
var newPos = label.index() + countSelected;
|
||||
if (newPos < countOptions) {
|
||||
$('#b_order label').eq(newPos).after("<label><input type='checkbox' value='"+$(this).val()+"' name='"+$(this).val()+"' checked>"+$(this).parent().text()+"</label>");
|
||||
label.remove();
|
||||
$('#b_order label').eq(newPos).after(label);
|
||||
}
|
||||
$(".multiselect").multiselect();
|
||||
});
|
||||
set_orderlist($("#bootorder"));
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue