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:
Shuang Zheng 2019-10-14 15:08:56 +08:00 committed by wenlingz
parent c7ecdf4764
commit 44c11ce6c4

View File

@ -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();
});