Browse Source

Fix autocomplete on editgroup page

xoru 5 years ago
parent
commit
578d166aaf
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      sections/torrents/editgroup.php
  2. 1
    1
      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++) {

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

46
       serviceUrl : TAGS_AUTOCOMPLETE_URL
46
       serviceUrl : TAGS_AUTOCOMPLETE_URL
47
     });
47
     });
48
   }
48
   }
49
-  if (url.path == 'upload') {
49
+  if (url.path == 'upload' || (url.path == 'torrents' && url.query['action'] == 'editgroup')) {
50
     $("#idols_0" + SELECTOR).autocomplete({
50
     $("#idols_0" + SELECTOR).autocomplete({
51
       deferRequestBy: 300,
51
       deferRequestBy: 300,
52
       serviceUrl : ARTIST_AUTOCOMPLETE_URL
52
       serviceUrl : ARTIST_AUTOCOMPLETE_URL

Loading…
Cancel
Save