mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-29 21:39:34 +02:00
moved to tablesorter.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
Reference in New Issue
Block a user