Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 3e810aba

Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt

  • ID 3e810abaf0feb18ca5b2ad9c6eae26205081f9a7
  • Vorgänger cec1e600
  • Nachfolger 5d3803e0

Pflichtenheftitem: nach Update evtl. auch Parent-Bottom neu rendern

Unterschiede anzeigen:

SL/Controller/RequirementSpecItem.pm
131 131
  my $html_bottom  = $self->render('requirement_spec_item/_function_block_content_bottom', { output => 0 }, requirement_spec_item => $self->item, id_prefix => $id_prefix);
132 132
  $id_prefix      .= 'function-block-content-';
133 133

  
134
  SL::ClientJS->new
134
  my $js = SL::ClientJS->new
135 135
    ->remove('#' . $prefix . '_form')
136 136
    ->replaceWith('#' . $id_prefix . 'top-'    . $self->item->id, $html_top)
137 137
    ->replaceWith('#' . $id_prefix . 'bottom-' . $self->item->id, $html_bottom)
138
    ->jstree->rename_node('#tree', '#fb-' . $self->item->id, $::request->presenter->requirement_spec_item_tree_node_title($self->item))
139
    ->render($self);
138
    ->jstree->rename_node('#tree', '#fb-' . $self->item->id, $::request->presenter->requirement_spec_item_tree_node_title($self->item));
139

  
140

  
141
  if ($self->item->get_type eq 'sub-function-block') {
142
    my $parent_html_bottom = $self->render('requirement_spec_item/_function_block_content_bottom', { output => 0 }, requirement_spec_item => $self->item->parent->load);
143
    $js->replaceWith('#function-block-content-bottom-' . $self->item->parent->id, $parent_html_bottom);
144
  }
145

  
146
  $js->render($self);
140 147
}
141 148

  
142 149
#

Auch abrufbar als: Unified diff