X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Fjs%2Fautocomplete.js;h=bb3577fb9b2ddd66f8159611fea3a8d0c7a957f9;hb=f41a219f49c02f87b885b93bdaf8b5f86c6b8bd8;hp=885c38d6da8ef6d5e99151f13f79184a69c09471;hpb=f7190ce9714be3e2edbc0915c854fc707cfbbcc6;p=friendica.git diff --git a/view/js/autocomplete.js b/view/js/autocomplete.js index 885c38d6da..bb3577fb9b 100644 --- a/view/js/autocomplete.js +++ b/view/js/autocomplete.js @@ -1,3 +1,4 @@ +// @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt Expat /** * @brief Friendica people autocomplete * @@ -285,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 = ''; @@ -518,4 +493,4 @@ ACPopup.prototype.onkey = function(event){ this.close(); } } - +// @license-end