~smagoun/whoopsie/whoopsie-lp1017637

« back to all changes in this revision

Viewing changes to backend/stats/static/js/yui/build/autocomplete-plugin/autocomplete-plugin.js

  • Committer: Evan Dandrea
  • Date: 2012-05-09 05:53:45 UTC
  • Revision ID: evan.dandrea@canonical.com-20120509055345-z2j41tmcbf4as5uf
The backend now lives in lp:daisy and the website (errors.ubuntu.com) now lives in lp:errors.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
YUI 3.5.0 (build 5089)
3
 
Copyright 2012 Yahoo! Inc. All rights reserved.
4
 
Licensed under the BSD License.
5
 
http://yuilibrary.com/license/
6
 
*/
7
 
YUI.add('autocomplete-plugin', function(Y) {
8
 
 
9
 
/**
10
 
Binds an AutoCompleteList instance to a Node instance.
11
 
 
12
 
@module autocomplete
13
 
@submodule autocomplete-plugin
14
 
**/
15
 
 
16
 
/**
17
 
Binds an AutoCompleteList instance to a Node instance.
18
 
 
19
 
@example
20
 
 
21
 
    Y.one('#my-input').plug(Y.Plugin.AutoComplete, {
22
 
        source: 'select * from search.suggest where query="{query}"'
23
 
    });
24
 
 
25
 
    // You can now access the AutoCompleteList instance at Y.one('#my-input').ac
26
 
 
27
 
@class Plugin.AutoComplete
28
 
@extends AutoCompleteList
29
 
**/
30
 
 
31
 
var Plugin = Y.Plugin;
32
 
 
33
 
function ACListPlugin(config) {
34
 
    config.inputNode = config.host;
35
 
 
36
 
    // Render by default.
37
 
    if (!config.render && config.render !== false) {
38
 
      config.render = true;
39
 
    }
40
 
 
41
 
    ACListPlugin.superclass.constructor.apply(this, arguments);
42
 
}
43
 
 
44
 
Y.extend(ACListPlugin, Y.AutoCompleteList, {}, {
45
 
    NAME      : 'autocompleteListPlugin',
46
 
    NS        : 'ac',
47
 
    CSS_PREFIX: Y.ClassNameManager.getClassName('aclist')
48
 
});
49
 
 
50
 
Plugin.AutoComplete     = ACListPlugin;
51
 
Plugin.AutoCompleteList = ACListPlugin;
52
 
 
53
 
 
54
 
}, '3.5.0' ,{requires:['autocomplete-list', 'node-pluginhost']});