|
@@ -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
|
}
|