Browse Source

Fix for added artist fields on new request page

xoru 5 years ago
parent
commit
c78ae61be6
1 changed files with 4 additions and 3 deletions
  1. 4
    3
      static/functions/requests.js

+ 4
- 3
static/functions/requests.js View File

@@ -95,10 +95,11 @@ function AddArtistField() {
95 95
     x.appendChild(document.createElement("br"));
96 96
     x.appendChild(ArtistField);
97 97
 
98
-    if ($("#artist").data("gazelle-autocomplete")) {
99
-      $(ArtistField).live('focus', function() {
98
+    if ($("#artist_0").data("gazelle-autocomplete")) {
99
+      $(ArtistField).on('focus', function() {
100 100
         $(ArtistField).autocomplete({
101
-          serviceUrl : 'artist.php?action=autocomplete'
101
+          deferRequestBy: 300,
102
+          serviceUrl : ARTIST_AUTOCOMPLETE_URL
102 103
         });
103 104
       });
104 105
     }

Loading…
Cancel
Save