mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-26 20:11:49 +02:00
client side code webstorm code cleanup.
This commit is contained in:
@@ -2,13 +2,13 @@
|
||||
|
||||
$.fn.autoComplete = function (resource) {
|
||||
$(this).typeahead({
|
||||
source: function (filter, callback) {
|
||||
source : function (filter, callback) {
|
||||
$.ajax({
|
||||
url: NzbDrone.Constants.ApiRoot + resource,
|
||||
url : NzbDrone.Constants.ApiRoot + resource,
|
||||
dataType: "json",
|
||||
type: "GET",
|
||||
data: { query: filter },
|
||||
success: function (data) {
|
||||
type : "GET",
|
||||
data : { query: filter },
|
||||
success : function (data) {
|
||||
callback(data);
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user