Permalink
Browse files

Fix form submission

  • Loading branch information...
1 parent 47659e0 commit 0653a3435e838e1930f557421ee4c8c6e9685166 @william-gr william-gr committed Jun 5, 2013
Showing with 5 additions and 5 deletions.
  1. +5 −5 gui/freeadmin/static/lib/js/freeadmin/VolumeManager.js
View
10 gui/freeadmin/static/lib/js/freeadmin/VolumeManager.js
@@ -273,7 +273,7 @@ define([
_disksSwitch: null,
_dragTooltip: null,
_draggedOnce: false,
- _formVdevs: {},
+ _formVdevs: null,
validate: function(disk) {
var valid = true;
for(var key in this.disks) {
@@ -1066,10 +1066,10 @@ define([
for(var d=perRow*j;d<perRow*(j+1);d++) {
disks.push(vdev.disks[d].get("name"));
}
- vdev._formVdevs[k][0].set('name', 'layout-' + k + '-vdevtype');
- vdev._formVdevs[k][0].set('value', 'layout-' + k + '-vdevtype');
- vdev._formVdevs[k][1].set('name', 'layout-' + k + '-disks');
- vdev._formVdevs[k][1].set('value', disks);
+ vdev._formVdevs[j][0].set('name', 'layout-' + k + '-vdevtype');
+ vdev._formVdevs[j][0].set('value', 'layout-' + k + '-vdevtype');
+ vdev._formVdevs[j][1].set('name', 'layout-' + k + '-disks');
+ vdev._formVdevs[j][1].set('value', disks);
}
}
this._total_vdevs.set('value', k);

0 comments on commit 0653a34

Please sign in to comment.