Browse Source

Remove autocomplete from artists collage.

* URLs are used on the artist collage page, not names.
* Also removed unused artistsimilar autocomplete.
xoru 5 years ago
parent
commit
8fcb2b1816
1 changed files with 1 additions and 5 deletions
  1. 1
    5
      static/functions/autocomplete.js

+ 1
- 5
static/functions/autocomplete.js View File

24
     serviceUrl : ARTIST_AUTOCOMPLETE_URL,
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
     $("#artist" + SELECTOR).autocomplete({
28
     $("#artist" + SELECTOR).autocomplete({
29
       deferRequestBy: 300,
29
       deferRequestBy: 300,
30
       serviceUrl : ARTIST_AUTOCOMPLETE_URL
30
       serviceUrl : ARTIST_AUTOCOMPLETE_URL
31
     });
31
     });
32
-    $("#artistsimilar" + SELECTOR).autocomplete({
33
-      deferRequestBy: 300,
34
-      serviceUrl : ARTIST_AUTOCOMPLETE_URL
35
-    });
36
   }
32
   }
37
   if (url.path == 'torrents' || url.path == 'upload' || url.path == 'collages' || url.path == 'requests' || url.path == 'top10' || (url.path == 'requests' && url.query['action'] == 'new')) {
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
     $("#tags" + SELECTOR).autocomplete({
34
     $("#tags" + SELECTOR).autocomplete({

Loading…
Cancel
Save