From: Moritz Bunkus Date: Wed, 13 Mar 2013 15:04:38 +0000 (+0100) Subject: Pflichtenhefttextblöcke: nach Anlegen Node im Baum fokussieren X-Git-Tag: release-3.2.0beta~467^2~212 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=5187eea8b059d8e164329d73628d6c0b75567441;p=kivitendo-erp.git Pflichtenhefttextblöcke: nach Anlegen Node im Baum fokussieren --- diff --git a/SL/Controller/RequirementSpecTextBlock.pm b/SL/Controller/RequirementSpecTextBlock.pm index 931c27d59..c4f37de10 100644 --- a/SL/Controller/RequirementSpecTextBlock.pm +++ b/SL/Controller/RequirementSpecTextBlock.pm @@ -126,6 +126,7 @@ sub action_ajax_create { SL::ClientJS->new ->replaceWith('#' . $::form->{form_prefix} . '_form', $html) ->jstree->create_node('#tree', $insert_after ? ('#tb-' . $insert_after, 'after') : ('#tb-' . ($attributes->{output_position} == 0 ? 'front' : 'back'), 'last'), $node) + ->jstree->select_node('#tree', '#tb-' . $self->text_block->id) ->render($self); }