2 Commits

Author SHA1 Message Date
  xoru 8fcb2b1816 Remove autocomplete from artists collage. 5 years ago
  xoru 578d166aaf Fix autocomplete on editgroup page 5 years ago
2 changed files with 3 additions and 7 deletions
  1. 1
    1
      sections/torrents/editgroup.php
  2. 2
    6
      static/functions/autocomplete.js

+ 1
- 1
sections/torrents/editgroup.php View File

173
 ?>
173
 ?>
174
         </td>
174
         </td>
175
         <td id="idolfields">
175
         <td id="idolfields">
176
-          <input type="text" id="idol_0" name="idols[]" size="45" value="<?=$Artists[0]['name']?>"/>
176
+          <input type="text" id="idols_0" name="idols[]" size="45" value="<?=$Artists[0]['name']?>"<? Users::has_autocomplete_enabled('other'); ?>/>
177
           <a class="add_artist_button brackets">+</a> <a class="remove_artist_button brackets">&minus;</a>
177
           <a class="add_artist_button brackets">+</a> <a class="remove_artist_button brackets">&minus;</a>
178
 <?
178
 <?
179
   for ($i = 1; $i < count($Artists); $i++) {
179
   for ($i = 1; $i < count($Artists); $i++) {

+ 2
- 6
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({
46
       serviceUrl : TAGS_AUTOCOMPLETE_URL
42
       serviceUrl : TAGS_AUTOCOMPLETE_URL
47
     });
43
     });
48
   }
44
   }
49
-  if (url.path == 'upload') {
45
+  if (url.path == 'upload' || (url.path == 'torrents' && url.query['action'] == 'editgroup')) {
50
     $("#idols_0" + SELECTOR).autocomplete({
46
     $("#idols_0" + SELECTOR).autocomplete({
51
       deferRequestBy: 300,
47
       deferRequestBy: 300,
52
       serviceUrl : ARTIST_AUTOCOMPLETE_URL
48
       serviceUrl : ARTIST_AUTOCOMPLETE_URL

Loading…
Cancel
Save