aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/autocomplete.js
diff options
context:
space:
mode:
Diffstat (limited to 'view/js/autocomplete.js')
-rw-r--r--view/js/autocomplete.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/view/js/autocomplete.js b/view/js/autocomplete.js
index 66d8cf90c..26d3f6211 100644
--- a/view/js/autocomplete.js
+++ b/view/js/autocomplete.js
@@ -91,13 +91,15 @@ function basic_replace(item) {
})( jQuery );
(function( $ ){
- $.fn.contact_autocomplete = function(backend_url, onselect) {
+ $.fn.contact_autocomplete = function(backend_url, typ, onselect) {
+
+ if(typeof typ === 'undefined') typ = '';
// Autocomplete contacts
contacts = {
match: /(^)([^\n]+)$/,
index: 2,
- search: function(term, callback) { contact_search(term, callback, backend_url, '',[]); },
+ search: function(term, callback) { contact_search(term, callback, backend_url, typ,[]); },
replace: basic_replace,
template: contact_format,
}