diff --git a/ts/ready.ts b/ts/ready.ts index 7036e28..9269e44 100644 --- a/ts/ready.ts +++ b/ts/ready.ts @@ -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 +} +