From d9ddb4ead97e42aa1641c353f90e9c258d6e5ab4 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 26 Apr 2013 13:56:31 +0200 Subject: [PATCH] =?utf8?q?Pflichtenhefttextbl=C3=B6cke:=20nach=20Drag=20&?= =?utf8?q?=20Drop=20Root-Node=20=C3=B6ffnen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Controller/RequirementSpecTextBlock.pm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 { -- 2.20.1