some bbcode autocomplete refinement for edit webpage

This commit is contained in:
Mario Vavti 2016-04-13 11:56:43 +02:00
parent f4a27afee9
commit b81291cd5c

View File

@ -151,7 +151,7 @@ function editwebpage_content(&$a) {
'$geotag' => $geotag, '$geotag' => $geotag,
'$nickname' => $channel['channel_address'], '$nickname' => $channel['channel_address'],
'$confirmdelete' => t('Delete webpage?'), '$confirmdelete' => t('Delete webpage?'),
'$bbco_autocomplete'=> 'bbcode', '$bbco_autocomplete'=> (($mimetype == 'text/bbcode') ? 'bbcode' : '')
)); ));
$tpl = get_markup_template("jot.tpl"); $tpl = get_markup_template("jot.tpl");
@ -216,7 +216,7 @@ function editwebpage_content(&$a) {
'$defexpire' => '', '$defexpire' => '',
'$feature_expire' => false, '$feature_expire' => false,
'$expires' => t('Set expiration date'), '$expires' => t('Set expiration date'),
'$bbco_autocomplete'=> 'bbcode' '$bbcode' => (($mimetype == 'text/bbcode') ? true : false)
)); ));
$o .= replace_macros(get_markup_template('edpost_head.tpl'), array( $o .= replace_macros(get_markup_template('edpost_head.tpl'), array(