Permalink
Browse files

small fix

  • Loading branch information...
1 parent 8f639f6 commit d30dcc51d0dc6d59b2faf9b2f0ce58ee18f3a3de @winebarrel winebarrel committed Sep 2, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 ec2ui/content/ec2ui/controller.js
  2. +2 −2 ec2ui/content/ec2ui/dialog_new_volume.xul
@@ -91,7 +91,7 @@ var ec2ui_controller = {
if (snapshotId != null) params.push(["SnapshotId", snapshotId]);
if (zone != null) params.push(["AvailabilityZone", zone]);
if (volumeType != null) params.push(["VolumeType", volumeType]);
- if (iops != null) params.push(["Iops", iops]);
+ if (volumeType && volumeType != 'standard' && iops != null) params.push(["Iops", iops]);
ec2_httpclient.queryEC2("CreateVolume", params, this, true, "onCompleteCreateVolume", callback);
},
@@ -31,11 +31,11 @@
</row>
<row>
<label control="ec2ui.newvolume.volumetypelist" value="&ec2ui.volumes.volumeType.label;" />
- <menulist id="ec2ui.newvolume.volumetypelist" />
+ <menulist id="ec2ui.newvolume.volumetypelist" oncommand="document.getElementById('ec2ui.newvolume.iops').disabled = (this.value == 'standard');" />
</row>
<row>
<label control="ec2ui.newvolume.iops" value="&ec2ui.volumes.iops.label;" />
- <textbox id="ec2ui.newvolume.iops" size="40" />
+ <textbox id="ec2ui.newvolume.iops" size="40" value="100" disabled="true" />
</row>
<row>
<label control="ec2ui.newvolume.tag" value="Tag" />

0 comments on commit d30dcc5

Please sign in to comment.