moved to tablesorter.

This commit is contained in:
kay.one
2013-02-15 15:38:53 -08:00
parent cda53cfd3a
commit 6a7e346bf2
22 changed files with 2321 additions and 2687 deletions

View File

@@ -1,15 +1,15 @@
define([], function () {
define(['app'], function () {
$.fn.folderAutoComplete = function () {
$.fn.autoComplete = function (resource) {
$(this).typeahead({
source: function (query, process) {
source: function (filter, callback) {
$.ajax({
url: '/api/directories',
url: NzbDrone.Constants.ApiRoot + resource,
dataType: "json",
type: "POST",
data: { query: query },
type: "GET",
data: { query: filter },
success: function (data) {
process(data);
callback(data);
}
});
},