mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-29 02:55:38 +00:00
13 lines
417 B
JavaScript
13 lines
417 B
JavaScript
|
function bindFolderAutoComplete(selector) {
|
|||
|
YUI().use("autocomplete", "autocomplete-highlighters", 'autocomplete-filters', function (Y) {
|
|||
|
Y.one('body').addClass('yui3-skin-sam');
|
|||
|
Y.one(selector).plug(Y.Plugin.AutoComplete, {
|
|||
|
|
|||
|
|
|||
|
resultHighlighter: 'startsWith',
|
|||
|
resultFilters: 'phraseMatch',
|
|||
|
source: '/Directory/GetDirectories/?q={query}'
|
|||
|
});
|
|||
|
})
|
|||
|
|
|||
|
}
|