From 7fc57f486fb91da67c190ef8563d872a3570ded6 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 28 Mar 2012 00:44:45 -0700 Subject: [PATCH] support autocomplete @-tags in plaintext mode --- view/jot-header.tpl | 1 + view/msg-header.tpl | 3 +++ 2 files changed, 4 insertions(+) diff --git a/view/jot-header.tpl b/view/jot-header.tpl index 974e02ab4c..99e3aa0ec5 100755 --- a/view/jot-header.tpl +++ b/view/jot-header.tpl @@ -11,6 +11,7 @@ function initEditor(cb){ if(plaintext == 'none') { $("#profile-jot-text-loading").hide(); $("#profile-jot-text").css({ 'height': 200, 'color': '#000' }); + $("#profile-jot-text").contact_autocomplete(baseurl+"/acl"); editor = true; $("a#jot-perms-icon").fancybox({ 'transitionIn' : 'elastic', diff --git a/view/msg-header.tpl b/view/msg-header.tpl index 49ee5905b8..2d1ea7a612 100755 --- a/view/msg-header.tpl +++ b/view/msg-header.tpl @@ -41,6 +41,9 @@ if(plaintext != 'none') { } }); } +else + $("#prvmail-text").contact_autocomplete(baseurl+"/acl"); +