Sonarr/NzbDrone.Web/Scripts/AutoComplete.js

13 lines
417 B
JavaScript
Raw Normal View History

2011-06-30 06:15:06 +00:00
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}'
});
})
}