Elgg  Version 2.3
autocomplete.js
Go to the documentation of this file.
1 define(function (require) {
2 
3  var $ = require('jquery');
4  var elgg = require('elgg');
5  require('jquery.ui.autocomplete.html');
6 
7  return {
8  init: function () {
9  $('.elgg-input-autocomplete').each(function () {
10  var $this = $(this);
11  if (!$this.data('autocompleteInitialized')) {
12  $this.data('autocompleteInitialized', true);
13  $this.autocomplete({
14  source: $this.data('source'),
15  minLength: 2,
16  html: "html",
17 
18  // turn off experimental live help - no i18n support and a little buggy
19  messages: {
20  noResults: '',
21  results: function() {}
22  }
23  });
24  }
25  });
26  }
27  };
28 });
elgg
Definition: install.js:23
elgg comments init
Initialize comment inline editing.
Definition: comments.js:122
html
Definition: admin.css.php:36
elgg page messages
Definition: admin.css.php:233
elgg require
Throw an error if the required package isn't present.
Definition: elgglib.js:164
ui autocomplete
Definition: admin.css.php:713
define(function(require){var $=require('jquery');var elgg=require('elgg');require('jquery.ui.autocomplete.html');return{init:function(){$('.elgg-input-autocomplete').each(function(){var $this=$(this);if(!$this.data('autocompleteInitialized')){$this.data('autocompleteInitialized', true);$this.autocomplete({source:$this.data('source'), minLength:2, html:"html", messages:{noResults: '', results:function(){}}});}});}};})