diff options
author | friendica <info@friendica.com> | 2012-05-06 20:06:39 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-05-06 20:06:39 -0700 |
commit | b74a776162b86b6257acf0406e7df4da236c8f09 (patch) | |
tree | f8b5fe5c60dbef08661337ea7d9b2aeac7abaff8 /mod | |
parent | 851264161f1b0e638a818a0ebfa80feeb46dfa44 (diff) | |
download | volse-hubzilla-b74a776162b86b6257acf0406e7df4da236c8f09.tar.gz volse-hubzilla-b74a776162b86b6257acf0406e7df4da236c8f09.tar.bz2 volse-hubzilla-b74a776162b86b6257acf0406e7df4da236c8f09.zip |
I'll leave the private mail recipient autocomplete partially done. Need a good UI/JS person to finish it off.
Diffstat (limited to 'mod')
-rw-r--r-- | mod/message.php | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/mod/message.php b/mod/message.php index 70b85b84c..6fa128808 100644 --- a/mod/message.php +++ b/mod/message.php @@ -23,7 +23,7 @@ function message_init(&$a) { <script>$(document).ready(function() { var a; - a = $("#messageto").autocomplete({ + a = $("#recip").autocomplete({ serviceUrl: '$base/acl' }); }); @@ -172,8 +172,15 @@ 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); - $select = '<input type="text" id="messageto" name="messageto" value="' . $preselect .'" />'; + $select = contact_select('messageto','message-to-select', $preselect, 4, true, false, false, 10); + +// 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) + +// $select = '<input type="text" id="recip" name="messageto" value="' . $preselect .'" />'; $tpl = get_markup_template('prv_message.tpl'); $o .= replace_macros($tpl,array( |