1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

Feature #992: Improve multiple select for compute creation.

(cherry picked from commit cd87c6819ad05414d622d00474d7636434f9a495)
This commit is contained in:
Hector Sanjuan 2012-01-03 18:12:31 +01:00 committed by Ruben S. Montero
parent 180c9bdda4
commit 773d5ed82a

View File

@ -710,11 +710,11 @@ function popUpCreateVMDialog(){
$('#network_box option,#disk_box option',dialog).click(function(){
var clicked = $(this).attr('clicked');
if (clicked){//unbold, unmark
$(this).text($(this).text().replace(/\*/g,''));
$(this).text($(this).text().replace(//g,''));
$(this).removeAttr('clicked');
}
else {//bold,mark
$(this).text("*"+$(this).text()+"*");
$(this).text(""+$(this).text());
$(this).attr('clicked','clicked');
}
return false;