]> wagnertech.de Git - mfinanz.git/blobdiff - SL/Controller/RequirementSpecTextBlock.pm
Refactoring: SL::Template: Parameterübergabe als Hash, nicht positionsabhängig
[mfinanz.git] / SL / Controller / RequirementSpecTextBlock.pm
index 9f70e1bab522f8c2531e77275662f2f61175d651..737f748e82e29114c5a2a3489a2895b05c0257cb 100644 (file)
@@ -85,6 +85,7 @@ sub action_ajax_edit {
      ->insertAfter($html, '#text-block-' . $self->text_block->id)
      ->jstree->select_node('#tree', '#tb-' . $self->text_block->id)
      ->focus('#edit_text_block_' . $self->text_block->id . '_title')
+     ->reinit_widgets
      ->render($self);
 }
 
@@ -136,7 +137,9 @@ sub action_ajax_update {
     ->replaceWith('#text-block-' . $self->text_block->id, $html)
     ->run(SORTABLE_PICTURE_LIST())
     ->jstree->rename_node('#tree', '#tb-' . $self->text_block->id, $self->text_block->title)
-    ->prop('#tb-' . $self->text_block->id, 'title', $self->text_block->content_excerpt)
+    ->prop('#tb-' . $self->text_block->id . ' a', 'title', $self->text_block->content_excerpt)
+    ->addClass('#tb-' . $self->text_block->id . ' a', 'tooltip')
+    ->reinit_widgets
     ->render($self);
 }
 
@@ -454,6 +457,7 @@ sub add_new_text_block_form {
 
   $self->js
      ->action($params{insert_after_id} ? 'insertAfter' : 'appendTo', $html, '#text-block-' . ($params{insert_after_id} || 'list'))
+     ->reinit_widgets
      ->focus('#' . $id_base . '_title');
 }