Browse Source

Fix where artist autocomplete is called

xoru 5 years ago
parent
commit
a5d44c00c3
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      static/functions/autocomplete.js

+ 8
- 0
static/functions/autocomplete.js View File

45
       delimiter: ',',
45
       delimiter: ',',
46
       serviceUrl : TAGS_AUTOCOMPLETE_URL
46
       serviceUrl : TAGS_AUTOCOMPLETE_URL
47
     });
47
     });
48
+  }
49
+  if (url.path == 'upload') {
48
     $("#idols_0" + SELECTOR).autocomplete({
50
     $("#idols_0" + SELECTOR).autocomplete({
49
       deferRequestBy: 300,
51
       deferRequestBy: 300,
50
       serviceUrl : ARTIST_AUTOCOMPLETE_URL
52
       serviceUrl : ARTIST_AUTOCOMPLETE_URL
51
     });
53
     });
52
   }
54
   }
55
+  if (url.path == 'requests' && url.query['action'] == 'new') {
56
+    $("#artist_0" + SELECTOR).autocomplete({
57
+      deferRequestBy: 300,
58
+      serviceUrl : ARTIST_AUTOCOMPLETE_URL
59
+    });
60
+  }
53
 
61
 
54
 };
62
 };

Loading…
Cancel
Save