mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Fix VM select IP drop-down for PF/LB UI
This commit is contained in:
parent
e046364cce
commit
a48bf0969e
@ -474,7 +474,7 @@
|
|||||||
var $tr = data.$tr;
|
var $tr = data.$tr;
|
||||||
var $td = $tr.find('td.first');
|
var $td = $tr.find('td.first');
|
||||||
var $select = $('<div></div>').addClass('subselect').append(
|
var $select = $('<div></div>').addClass('subselect').append(
|
||||||
$('<select></select>')
|
$('<select>')
|
||||||
).hide();
|
).hide();
|
||||||
var $selectionArea = $tr.find('td:last').find('input');
|
var $selectionArea = $tr.find('td:last').find('input');
|
||||||
|
|
||||||
@ -500,14 +500,17 @@
|
|||||||
$option.append(item.description);
|
$option.append(item.description);
|
||||||
$option.appendTo($select.find('select'));
|
$option.appendTo($select.find('select'));
|
||||||
});
|
});
|
||||||
|
$select.show();
|
||||||
} else {
|
} else {
|
||||||
$select.hide();
|
$select.hide();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
$select.show();
|
|
||||||
|
if ($(this).is('input[type=radio]')) {
|
||||||
|
$(this).closest('tr').siblings().find('input[type=radio]').change();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$select.find('option').remove();
|
$select.find('option').remove();
|
||||||
$select.hide();
|
$select.hide();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user