Browse Source

Fix autofill regression

spaghetti 7 years ago
parent
commit
b48819c7ce
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      static/functions/upload.js

+ 5
- 1
static/functions/upload.js View File

@@ -517,12 +517,16 @@ function MediaInfoExtract() {
517 517
   })
518 518
 }
519 519
 
520
-$(function() {
520
+function initAutofill() {
521 521
   $('[autofill]').each(function(i, el) {
522 522
     el.addEventListener('click', function(event) {
523 523
       ({'douj':DoujAutofill, 'anime':AnidbAutofill, 'jav':JavAutofill})[el.attributes['autofill'].value]()
524 524
     })
525 525
   })
526
+}
527
+
528
+$(function() {
529
+  initAutofill()
526 530
   $('.add_artist_button').each(function(i, el) {el.addEventListener('click', AddArtistField)})
527 531
   $('.remove_artist_button').each(function(i, el) {el.addEventListener('click', RemoveArtistField)})
528 532
 })

Loading…
Cancel
Save