mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 21:13:28 -07:00
removed NzbDrone. namespace, everything is done using require.
This commit is contained in:
parent
ef62af75df
commit
b0bd3f34f1
121 changed files with 2570 additions and 2587 deletions
|
@ -1,12 +1,12 @@
|
|||
'use strict';
|
||||
'use strict';
|
||||
|
||||
define(['app'], function () {
|
||||
define(function () {
|
||||
|
||||
$.fn.autoComplete = function (resource) {
|
||||
$(this).typeahead({
|
||||
source : function (filter, callback) {
|
||||
$.ajax({
|
||||
url : NzbDrone.Constants.ApiRoot + resource,
|
||||
url : window.ApiRoot + resource,
|
||||
dataType: 'json',
|
||||
type : 'GET',
|
||||
data : { query: filter },
|
||||
|
@ -16,7 +16,7 @@ define(['app'], function () {
|
|||
});
|
||||
},
|
||||
minLength: 3,
|
||||
items :20
|
||||
items : 20
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue