support autocomplete @-tags in plaintext mode

This commit is contained in:
friendica 2012-03-28 00:44:45 -07:00
parent f95fb2667a
commit 7fc57f486f
2 changed files with 4 additions and 0 deletions

View file

@ -11,6 +11,7 @@ function initEditor(cb){
if(plaintext == 'none') { if(plaintext == 'none') {
$("#profile-jot-text-loading").hide(); $("#profile-jot-text-loading").hide();
$("#profile-jot-text").css({ 'height': 200, 'color': '#000' }); $("#profile-jot-text").css({ 'height': 200, 'color': '#000' });
$("#profile-jot-text").contact_autocomplete(baseurl+"/acl");
editor = true; editor = true;
$("a#jot-perms-icon").fancybox({ $("a#jot-perms-icon").fancybox({
'transitionIn' : 'elastic', 'transitionIn' : 'elastic',

View file

@ -41,6 +41,9 @@ if(plaintext != 'none') {
} }
}); });
} }
else
$("#prvmail-text").contact_autocomplete(baseurl+"/acl");
</script> </script>
<script type="text/javascript" src="js/ajaxupload.js" ></script> <script type="text/javascript" src="js/ajaxupload.js" ></script>