- ->jstree->rename_node('#tree', '#fb-' . $self->item->id, $::request->presenter->requirement_spec_item_tree_node_title($self->item))
- ->render($self);
+ ->jstree->rename_node('#tree', '#fb-' . $self->item->id, $::request->presenter->requirement_spec_item_tree_node_title($self->item));
+
+
+ if ($self->item->get_type eq 'sub-function-block') {
+ my $parent_html_bottom = $self->render('requirement_spec_item/_function_block_content_bottom', { output => 0 }, requirement_spec_item => $self->item->parent->load);
+ $js->replaceWith('#function-block-content-bottom-' . $self->item->parent->id, $parent_html_bottom);
+ }
+
+ $js->render($self);