mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-19 20:22:46 +00:00
acrn-config: fix the issue some select boxes disappear after edited
fix the issue: some select boxes disappear unexpectly after edited Tracked-On: #3809 Signed-off-by: Shuang Zheng <shuang.zheng@intel.com> Reviewed-by: Victor Sun <victor.sun@intel.com>
This commit is contained in:
parent
c7ecdf4764
commit
44c11ce6c4
@ -300,6 +300,8 @@ $().ready(function(){
|
||||
})
|
||||
|
||||
$(document).on('click', "button:contains('+')", function() {
|
||||
if($(this).text() != '+')
|
||||
return;
|
||||
var add_vcpu_id = $(this).attr('id');
|
||||
var id = add_vcpu_id.replace('add_vcpu_', '');
|
||||
var config_item = $(this).parent().parent();
|
||||
@ -315,6 +317,8 @@ $().ready(function(){
|
||||
});
|
||||
|
||||
$(document).on('click', "button:contains('-')", function() {
|
||||
if($(this).text() != '-')
|
||||
return;
|
||||
var config_item = $(this).parent().parent();
|
||||
config_item.remove();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user