From c03c0724ed5190c720e8f6446c742d4078db43db Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 29 Dec 2013 16:12:39 -0800 Subject: basic support for exclusion tags - we just need to use the results to tweak the ACL. --- js/fk.autocomplete.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/fk.autocomplete.js') diff --git a/js/fk.autocomplete.js b/js/fk.autocomplete.js index 8bac41936..763ca354d 100644 --- a/js/fk.autocomplete.js +++ b/js/fk.autocomplete.js @@ -151,7 +151,7 @@ ACPopup.prototype.onkey = function(event){ } function ContactAutocomplete(element,backend_url){ - this.pattern=/@([^ \n]+)$/; + this.pattern=/@(\!*)([^ \n]+)$/; this.popup=null; var that = this; @@ -170,7 +170,7 @@ function ContactAutocomplete(element,backend_url){ if (that.popup===null){ that.popup = new ACPopup(this, backend_url); } - if (that.popup.ready && match[1]!==that.popup.searchText) that.popup.search(match[1]); + if (that.popup.ready && match[2]!==that.popup.searchText) that.popup.search(match[2]); if (!that.popup.ready) that.popup=null; } else { -- cgit v1.2.3