Survey drag-and-drop now returns the edit box for the item just drug.

This commit is contained in:
Kaleb Murphy 2009-04-10 20:03:29 +00:00
parent 8cd5588f10
commit 234914c3e2
2 changed files with 9 additions and 6 deletions

View file

@ -725,15 +725,18 @@ sub insertObject {
# Use splice to rearrange the relevant array of objects..
if ( $count == 1 ) {
splice @{ $self->sections($address) }, sIndex($address) +1, 0, $object;
$address->[0]++;
}
elsif ( $count == 2 ) {
splice @{ $self->questions($address) }, qIndex($address) + 1, 0, $object;
$address->[1]++;
}
elsif ( $count == 3 ) {
splice @{ $self->answers($address) }, aIndex($address) + 1, 0, $object;
$address->[2]++;
}
return;
return $address;
}
=head2 copy ( $address )