|
@@ -24,15 +24,11 @@ function initAutocomplete() {
|
24
|
24
|
serviceUrl : ARTIST_AUTOCOMPLETE_URL,
|
25
|
25
|
});
|
26
|
26
|
|
27
|
|
- if (url.path == 'torrents' || url.path == 'upload' || url.path == 'artist' || (url.path == 'requests' && url.query['action'] == 'new') || url.path == 'collages') {
|
|
27
|
+ if (url.path == 'torrents' || url.path == 'upload' || url.path == 'artist' || (url.path == 'requests' && url.query['action'] == 'new')) {
|
28
|
28
|
$("#artist" + SELECTOR).autocomplete({
|
29
|
29
|
deferRequestBy: 300,
|
30
|
30
|
serviceUrl : ARTIST_AUTOCOMPLETE_URL
|
31
|
31
|
});
|
32
|
|
- $("#artistsimilar" + SELECTOR).autocomplete({
|
33
|
|
- deferRequestBy: 300,
|
34
|
|
- serviceUrl : ARTIST_AUTOCOMPLETE_URL
|
35
|
|
- });
|
36
|
32
|
}
|
37
|
33
|
if (url.path == 'torrents' || url.path == 'upload' || url.path == 'collages' || url.path == 'requests' || url.path == 'top10' || (url.path == 'requests' && url.query['action'] == 'new')) {
|
38
|
34
|
$("#tags" + SELECTOR).autocomplete({
|
|
@@ -46,5 +42,17 @@ function initAutocomplete() {
|
46
|
42
|
serviceUrl : TAGS_AUTOCOMPLETE_URL
|
47
|
43
|
});
|
48
|
44
|
}
|
|
45
|
+ if (url.path == 'upload' || (url.path == 'torrents' && url.query['action'] == 'editgroup')) {
|
|
46
|
+ $("#idols_0" + SELECTOR).autocomplete({
|
|
47
|
+ deferRequestBy: 300,
|
|
48
|
+ serviceUrl : ARTIST_AUTOCOMPLETE_URL
|
|
49
|
+ });
|
|
50
|
+ }
|
|
51
|
+ if (url.path == 'requests' && url.query['action'] == 'new') {
|
|
52
|
+ $("#artist_0" + SELECTOR).autocomplete({
|
|
53
|
+ deferRequestBy: 300,
|
|
54
|
+ serviceUrl : ARTIST_AUTOCOMPLETE_URL
|
|
55
|
+ });
|
|
56
|
+ }
|
49
|
57
|
|
50
|
58
|
};
|