use SL::DB::RequirementSpecPredefinedText;
use SL::DB::RequirementSpecTextBlock;
use SL::Helper::Flash;
-use SL::JSON;
use SL::Locale::String;
use Rose::Object::MakeMethods::Generic
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);
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');
}
}
}