Revision b2e51e71
Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt
SL/Controller/RequirementSpec.pm | ||
---|---|---|
120 | 120 |
my ($self) = @_; |
121 | 121 |
|
122 | 122 |
my $html = $self->render('requirement_spec/_edit_time_and_cost_estimate', { output => 0 }); |
123 |
my $first = ($self->requirement_spec->sections_sorted || [])->[0]; |
|
124 |
$first = ($first->children_sorted || [])->[0] if $first; |
|
123 | 125 |
|
124 | 126 |
$self->js |
125 | 127 |
->hide('#time_cost_estimate') |
126 | 128 |
->after('#time_cost_estimate', $html) |
127 | 129 |
->on('#time_cost_estimate INPUT[type=text]', 'keydown', 'kivi.requirement_spec.time_cost_estimate_input_key_down') |
130 |
->action_if($first && $first->id, 'focus', '#time_and_cost_estimate_form_complexity_id_' . $first->id) |
|
128 | 131 |
->render($self); |
129 | 132 |
} |
130 | 133 |
|
Auch abrufbar als: Unified diff
Pflichtenhefte: in Zeitabschätzungsmaske erste Selectbox focussen