Revision 3bbe01f7
Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt
SL/Controller/RequirementSpecItem.pm | ||
---|---|---|
226 | 226 |
# Show section/item to edit if it is not visible. |
227 | 227 |
|
228 | 228 |
my $html = $self->render('requirement_spec_item/_section', { output => 0 }, requirement_spec_item => $self->item->section); |
229 |
$self->js->html('#column-content', $html); |
|
229 |
$self->set_function_blocks_tab_menu_class(class => 'section-context-menu') |
|
230 |
->html('#column-content', $html); |
|
230 | 231 |
} |
231 | 232 |
|
232 | 233 |
if ($self->item->item_type =~ m/section/) { |
... | ... | |
329 | 330 |
|
330 | 331 |
} else { |
331 | 332 |
my $html = $self->render('requirement_spec_item/_no_section', { output => 0 }); |
332 |
$self->js
|
|
333 |
$self->set_function_blocks_tab_menu_class(class => 'section-context-menu')
|
|
333 | 334 |
->html('#column-content', $html) |
334 | 335 |
->val('#current_content_type', '') |
335 | 336 |
->val('#current_content_id', '') |
... | ... | |
466 | 467 |
# Pasting the very first section? |
467 | 468 |
if (!@{ $self->sections }) { |
468 | 469 |
my $html = $self->render('requirement_spec_item/_section', { output => 0 }, requirement_spec_item => $self->item); |
469 |
$self->js->html('#column-content', $html) |
|
470 |
->jstree->select_node('#tree', '#fb-' . $self->item->id) |
|
470 |
$self->set_function_blocks_tab_menu_class(class => 'section-context-menu') |
|
471 |
->html('#column-content', $html) |
|
472 |
->jstree->select_node('#tree', '#fb-' . $self->item->id) |
|
471 | 473 |
} |
472 | 474 |
|
473 | 475 |
# Update the current view if required. |
... | ... | |
532 | 534 |
my ($self, $item, $item_to_select) = @_; |
533 | 535 |
|
534 | 536 |
my $html = $self->render('requirement_spec_item/_section', { output => 0 }, requirement_spec_item => $item); |
535 |
$self->js->html('#column-content', $html); |
|
537 |
$self->set_function_blocks_tab_menu_class(class => 'section-context-menu') |
|
538 |
->html('#column-content', $html); |
|
536 | 539 |
$self->select_node($item_to_select || $item); |
537 | 540 |
} |
538 | 541 |
|
... | ... | |
569 | 572 |
my $new_section = $self->item->section; |
570 | 573 |
my $html = $self->render('requirement_spec_item/_section', { output => 0 }, requirement_spec_item => $new_section); |
571 | 574 |
|
572 |
return $self->js
|
|
575 |
return $self->set_function_blocks_tab_menu_class(class => 'section-context-menu')
|
|
573 | 576 |
->html('#column-content', $html) |
574 | 577 |
->val('#current_content_type', 'section') |
575 | 578 |
->val('#current_content_id', $new_section->id) |
Auch abrufbar als: Unified diff
Pflichtenhefte: Kontextmenüs für Items/Textblöcke auf größerer Fläche anzeigen