From: Moritz Bunkus Date: Fri, 26 Apr 2013 11:56:31 +0000 (+0200) Subject: Pflichtenhefttextblöcke: nach Drag & Drop Root-Node öffnen X-Git-Tag: release-3.2.0beta~467^2~180 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=d9ddb4ead97e42aa1641c353f90e9c258d6e5ab4;p=kivitendo-erp.git Pflichtenhefttextblöcke: nach Drag & Drop Root-Node öffnen --- diff --git a/SL/Controller/RequirementSpecTextBlock.pm b/SL/Controller/RequirementSpecTextBlock.pm index 34d4aec52..9fe3b9b83 100644 --- a/SL/Controller/RequirementSpecTextBlock.pm +++ b/SL/Controller/RequirementSpecTextBlock.pm @@ -203,7 +203,10 @@ sub action_dragged_and_dropped { # $::lxdebug->dump(0, "form", $::form); - return $self->invalidate_version->render($self) if $::form->{current_content_type} !~ m/^text-block/; + $self->invalidate_version + ->jstree->open_node('#tree', '#tb-' . (!$self->text_block->output_position ? 'front' : 'back')); + + return $self->js->render($self) if $::form->{current_content_type} !~ m/^text-block/; my $current_where = $self->output_position_from_id($::form->{current_content_id}, $::form->{current_content_type}) // -1; my $new_where = $self->text_block->output_position; @@ -244,8 +247,7 @@ sub action_dragged_and_dropped { } } - $self->invalidate_version - ->render($self); + $self->js->render($self); } sub action_ajax_copy {