+ onload hook for admin form functionality

This commit is contained in:
shockrah 2022-03-24 19:59:24 -07:00
parent 1e4a6d5f5d
commit 6c6d5f8f30

View File

@ -5,6 +5,7 @@
* */
import { Category } from './index'
import { VideoMeta } from './category'
import { populate_meta_form } from './admin'
export function category_ready_handler(e?: Event) : Event {
/*
@ -58,3 +59,9 @@ export function index_ready_handler(e?: Event) : Event {
return e
}
export function admin_ready_handler(e?: Event) : Event {
// Binding callbacks to frontend
document.getElementById('video-file').onchange = populate_meta_form
return e
}