->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);
}
->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);
}
$self->js
->action($params{insert_after_id} ? 'insertAfter' : 'appendTo', $html, '#text-block-' . ($params{insert_after_id} || 'list'))
+ ->reinit_widgets
->focus('#' . $id_base . '_title');
}