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,7 +173,7 @@ if ($CategoryID == 1) {
173 173
 ?>
174 174
         </td>
175 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 177
           <a class="add_artist_button brackets">+</a> <a class="remove_artist_button brackets">&minus;</a>
178 178
 <?
179 179
   for ($i = 1; $i < count($Artists); $i++) {

+ 2
- 6
static/functions/autocomplete.js View File

@@ -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,7 +42,7 @@ function initAutocomplete() {
46 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 46
     $("#idols_0" + SELECTOR).autocomplete({
51 47
       deferRequestBy: 300,
52 48
       serviceUrl : ARTIST_AUTOCOMPLETE_URL

Loading…
Cancel
Save