diff options
author | zottel <github@zottel.net> | 2012-05-09 09:27:23 +0200 |
---|---|---|
committer | zottel <github@zottel.net> | 2012-05-09 09:27:23 +0200 |
commit | d92be9d93cc6a9b90572cd46e982e24f57c43ffc (patch) | |
tree | e74e7d4d0baf59d7922696717604d2447f391597 /mod/message.php | |
parent | 78429926bcf1ab7e8a4d35d0093ba666b3568708 (diff) | |
parent | 70a07086ad186e3f0cd978dd3f52e78fb92494cf (diff) | |
download | volse-hubzilla-d92be9d93cc6a9b90572cd46e982e24f57c43ffc.tar.gz volse-hubzilla-d92be9d93cc6a9b90572cd46e982e24f57c43ffc.tar.bz2 volse-hubzilla-d92be9d93cc6a9b90572cd46e982e24f57c43ffc.zip |
Merge remote branch 'upstream/master'
Diffstat (limited to 'mod/message.php')
-rw-r--r-- | mod/message.php | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/mod/message.php b/mod/message.php index 867f199c4..b8695fdd9 100644 --- a/mod/message.php +++ b/mod/message.php @@ -173,15 +173,22 @@ function message_content(&$a) { $preselect = (isset($a->argv[2])?array($a->argv[2]):false); - $select = contact_select('messageto','message-to-select', $preselect, 4, true, false, false, 10); + if(defined('EMAIL_AUTOCOMP')) { -// here's sort of where we want to do contact autocomplete -// comment out the contact selector line just above and use the following one instead, -// then figure out how to make it do the right thing -// pictures would be nice, but that didn't seem to work when I tried it -// (the json backend is found in mod/acl.php) + // here's where we want to do contact autocomplete + // just figure out how to make it do the right thing + // pictures would be nice, but that didn't work when I tried. + // It sort of barely works, but needs help + // (the json backend is found in mod/acl.php) -// $select = '<input type="text" id="recip" name="messageto" value="' . $preselect .'" />'; + $select = '<input type="text" id="recip" name="messageto" value="' . $preselect .'" />'; + } + else { + + // the ugly select box + + $select = contact_select('messageto','message-to-select', $preselect, 4, true, false, false, 10); + } $tpl = get_markup_template('prv_message.tpl'); $o .= replace_macros($tpl,array( |