Skip to content
This repository has been archived by the owner on Aug 5, 2021. It is now read-only.

Commit

Permalink
fix register/deregister instance dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
Genki Sugawara committed Nov 18, 2012
1 parent 7e6d457 commit 26e27dc
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
14 changes: 7 additions & 7 deletions ec2ui/content/ec2ui/deregisterlbinstances.js
Expand Up @@ -88,18 +88,18 @@ var ec2ui_DeregisterInstances = {
cell1.setAttribute('type', 'checkbox'); cell1.setAttribute('type', 'checkbox');
cell1.setAttribute('id',cellID); cell1.setAttribute('id',cellID);
row.appendChild(cell1); row.appendChild(cell1);

cell2.setAttribute('label', Instancedetails[i].name);
row.appendChild(cell2);


cell2.setAttribute('label', Instancedetails[i].id); cell3.setAttribute('label', Instancedetails[i].id);
cell2.setAttribute('id',cellInstanceId); cell3.setAttribute('id',cellInstanceId);
row.appendChild(cell2);

cell3.setAttribute('label', Instancedetails[i].state);
row.appendChild(cell3); row.appendChild(cell3);


cell4.setAttribute('label', Instancedetails[i].placement.availabilityZone); cell4.setAttribute('label', Instancedetails[i].state);
row.appendChild(cell4); row.appendChild(cell4);


cell5.setAttribute('label', Instancedetails[i].name); cell5.setAttribute('label', Instancedetails[i].placement.availabilityZone);
row.appendChild(cell5); row.appendChild(cell5);


var rowID = "row"+Idx; var rowID = "row"+Idx;
Expand Down
2 changes: 1 addition & 1 deletion ec2ui/content/ec2ui/dialog_deregister_lbinstances.xul
Expand Up @@ -14,10 +14,10 @@
<listbox id="Deregister_Instances" rows="10" width="500" seltype="multiple" onclick="ec2ui_DeregisterInstances.enable_disableInstances();"> <listbox id="Deregister_Instances" rows="10" width="500" seltype="multiple" onclick="ec2ui_DeregisterInstances.enable_disableInstances();">
<listhead> <listhead>
<listheader label="&ec2ui.registerlb.register.label;" width="50"/> <listheader label="&ec2ui.registerlb.register.label;" width="50"/>
<listheader label="Name" width="150"/>
<listheader label="&ec2ui.registerlb.instanceid.label;" width="100"/> <listheader label="&ec2ui.registerlb.instanceid.label;" width="100"/>
<listheader label="&ec2ui.registerlb.state.label;" width="100"/> <listheader label="&ec2ui.registerlb.state.label;" width="100"/>
<listheader label="&ec2ui.registerlb.zone.label;" width="100"/> <listheader label="&ec2ui.registerlb.zone.label;" width="100"/>
<listheader label="Name" width="150"/>
</listhead> </listhead>
<listcols> <listcols>
<listcol/> <listcol/>
Expand Down
2 changes: 1 addition & 1 deletion ec2ui/content/ec2ui/dialog_register_lbinstances.xul
Expand Up @@ -14,10 +14,10 @@
<listbox id="Register_Instances" rows="10" width="500" seltype="multiple" onclick="ec2ui_RegisterInstances.enable_disableInstances();"> <listbox id="Register_Instances" rows="10" width="500" seltype="multiple" onclick="ec2ui_RegisterInstances.enable_disableInstances();">
<listhead> <listhead>
<listheader label="&ec2ui.registerlb.register.label;" width="50"/> <listheader label="&ec2ui.registerlb.register.label;" width="50"/>
<listheader label="Name" width="150"/>
<listheader label="&ec2ui.registerlb.instanceid.label;" width="100"/> <listheader label="&ec2ui.registerlb.instanceid.label;" width="100"/>
<listheader label="&ec2ui.registerlb.state.label;" width="100"/> <listheader label="&ec2ui.registerlb.state.label;" width="100"/>
<listheader label="&ec2ui.registerlb.zone.label;" width="100"/> <listheader label="&ec2ui.registerlb.zone.label;" width="100"/>
<listheader label="Name" width="150"/>
</listhead> </listhead>
<listcols> <listcols>
<listcol/> <listcol/>
Expand Down
14 changes: 7 additions & 7 deletions ec2ui/content/ec2ui/registerlbinstances.js
Expand Up @@ -87,17 +87,17 @@ var ec2ui_RegisterInstances = {
cell1.setAttribute('id',cellID); cell1.setAttribute('id',cellID);
row.appendChild(cell1); row.appendChild(cell1);


cell2.setAttribute('label', Instancedetails[i].id); cell2.setAttribute('label', Instancedetails[i].name);
cell2.setAttribute('id',cellInstanceId); row.appendChild(cell2);
row.appendChild(cell2);
cell3.setAttribute('label', Instancedetails[i].id);
cell3.setAttribute('label', Instancedetails[i].state); cell3.setAttribute('id',cellInstanceId);
row.appendChild(cell3); row.appendChild(cell3);


cell4.setAttribute('label', Instancedetails[i].placement.availabilityZone); cell4.setAttribute('label', Instancedetails[i].state);
row.appendChild(cell4); row.appendChild(cell4);


cell5.setAttribute('label', Instancedetails[i].name); cell5.setAttribute('label', Instancedetails[i].placement.availabilityZone);
row.appendChild(cell5); row.appendChild(cell5);


for(var a=0;a<registerid.length;a++) for(var a=0;a<registerid.length;a++)
Expand Down

0 comments on commit 26e27dc

Please sign in to comment.