From: friendica Date: Fri, 11 May 2012 03:01:13 +0000 (-0700) Subject: fix PM replies after autocomplete changes X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8a5dcf64d84b98bda80e0346d508efc072c50002;p=friendica.git fix PM replies after autocomplete changes --- diff --git a/mod/message.php b/mod/message.php index 29a2fa2532..71f83b47a2 100644 --- a/mod/message.php +++ b/mod/message.php @@ -172,7 +172,7 @@ function message_content(&$a) { )); $preselect = (isset($a->argv[2])?array($a->argv[2]):false); - + $prename = $preurl = $preid = ''; @@ -188,7 +188,7 @@ function message_content(&$a) { } } - $prefill = (($preselect) ? $prename . ' [' . $preurl . ']' : ''); + $prefill = (($preselect) ? $prename : ''); // the ugly select box @@ -198,6 +198,7 @@ function message_content(&$a) { $o .= replace_macros($tpl,array( '$header' => t('Send Private Message'), '$to' => t('To:'), + '$showinputs' => 'true', '$prefill' => $prefill, '$autocomp' => $autocomp, '$preid' => $preid, @@ -376,9 +377,10 @@ function message_content(&$a) { $seen = $message['seen']; } + + $select = $message['name'] . ''; $parent = ''; - $tpl = get_markup_template('mail_display.tpl'); $o = replace_macros($tpl, array( @@ -393,6 +395,7 @@ function message_content(&$a) { // reply '$header' => t('Send Reply'), '$to' => t('To:'), + '$showinputs' => '', '$subject' => t('Subject:'), '$subjtxt' => template_escape($message['title']), '$readonly' => ' readonly="readonly" style="background: #BBBBBB;" ', diff --git a/view/theme/duepuntozero/prv_message.tpl b/view/theme/duepuntozero/prv_message.tpl index 5d884fe962..b5cda9c85e 100644 --- a/view/theme/duepuntozero/prv_message.tpl +++ b/view/theme/duepuntozero/prv_message.tpl @@ -8,8 +8,12 @@ $parent
$to
+{{ if $showinputs }} +{{ else }} +$select +{{ endif }}
$subject