X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FController%2FRequirementSpecTextBlock.pm;h=7d339a873ca2102b80c691aec1550a54c2c359a3;hb=85c4af4a97e002a6ec7804c7fb28d3c4c0972398;hp=e7964a6a10f681c70824f74fac048e00bc07bc7b;hpb=f10e650c26ed930ce04f4ca1bd3f21d0036e5ba4;p=kivitendo-erp.git diff --git a/SL/Controller/RequirementSpecTextBlock.pm b/SL/Controller/RequirementSpecTextBlock.pm index e7964a6a1..7d339a873 100644 --- a/SL/Controller/RequirementSpecTextBlock.pm +++ b/SL/Controller/RequirementSpecTextBlock.pm @@ -11,7 +11,6 @@ use SL::DB::RequirementSpec; use SL::DB::RequirementSpecPredefinedText; use SL::DB::RequirementSpecTextBlock; use SL::Helper::Flash; -use SL::JSON; use SL::Locale::String; use Rose::Object::MakeMethods::Generic @@ -49,6 +48,8 @@ sub action_ajax_list { my $html = $self->render('requirement_spec_text_block/ajax_list', { output => 0 }, TEXT_BLOCKS => $text_blocks, output_position => $new_where); $js->html('#column-content', $html) + ->val('#current_content_type', 'text-blocks-' . (0 == $new_where ? 'front' : 'back')) + ->val('#current_content_id', $::form->{clicked_id}); } $self->render($js); @@ -225,7 +226,7 @@ sub action_dragged_and_dropped { if ($prior_text_block) { $js->insertAfter($html, '#text-block-' . $prior_text_block->id); } else { - $js->appendTo($html, '#text-block-list'); + $js->prependTo($html, '#text-block-list'); } } }