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