fix autocomplete for /channel and /display

This commit is contained in:
Mario Vavti 2016-04-09 12:27:36 +02:00
parent e2b4d33627
commit 46ed79c87a
2 changed files with 5 additions and 1 deletions

View File

@ -133,6 +133,7 @@ function channel_content(&$a, $update = 0, $load = false) {
'bang' => '', 'bang' => '',
'visitor' => (($is_owner || $observer) ? true : false), 'visitor' => (($is_owner || $observer) ? true : false),
'profile_uid' => App::$profile['profile_uid'], 'profile_uid' => App::$profile['profile_uid'],
'editor_autocomplete' => true,
'bbco_autocomplete' => 'bbcode', 'bbco_autocomplete' => 'bbcode',
'bbcode' => true 'bbcode' => true
); );

View File

@ -65,7 +65,10 @@ function display_content(&$a, $update = 0, $load = false) {
'visitor' => true, 'visitor' => true,
'profile_uid' => local_channel(), 'profile_uid' => local_channel(),
'return_path' => 'channel/' . $channel['channel_address'], 'return_path' => 'channel/' . $channel['channel_address'],
'expanded' => true 'expanded' => true,
'editor_autocomplete' => true,
'bbco_autocomplete' => 'bbcode',
'bbcode' => true
); );
$o = '<div id="jot-popup">'; $o = '<div id="jot-popup">';