]> git.mxchange.org Git - friendica.git/blobdiff - view/js/autocomplete.js
Improve search box
[friendica.git] / view / js / autocomplete.js
index 1ba8900c23cddae6028511b44be7cbe7b8d6af33..bb3577fb9b2ddd66f8159611fea3a8d0c7a957f9 100644 (file)
@@ -286,32 +286,6 @@ function string2bb(element) {
        };
 })( jQuery );
 
-(function( $ ) {
-       $.fn.contact_autocomplete = function(backend_url, typ, autosubmit, onselect) {
-               if(typeof typ === 'undefined') typ = '';
-               if(typeof autosubmit === 'undefined') autosubmit = false;
-
-               // Autocomplete contacts
-               contacts = {
-                       match: /(^)([^\n]+)$/,
-                       index: 2,
-                       search: function(term, callback) { contact_search(term, callback, backend_url, typ); },
-                       replace: basic_replace,
-                       template: contact_format,
-               };
-
-               this.attr('autocomplete','off');
-               var a = this.textcomplete([contacts], {className:'acpopup', zIndex:10000});
-
-               if(autosubmit)
-                       a.on('textComplete:select', function(e,value,strategy) { submit_form(this); });
-
-               if(typeof onselect !== 'undefined')
-                       a.on('textComplete:select', function(e, value, strategy) { onselect(value); });
-       };
-})( jQuery );
-
-
 (function( $ ) {
        $.fn.name_autocomplete = function(backend_url, typ, autosubmit, onselect) {
                if(typeof typ === 'undefined') typ = '';