From 6c6d5f8f30fdc5b659c77e3659fd335d19a0cd43 Mon Sep 17 00:00:00 2001 From: shockrah Date: Thu, 24 Mar 2022 19:59:24 -0700 Subject: [PATCH] + onload hook for admin form functionality --- ts/ready.ts | 7 +++++++ 1 file changed, 7 insertions(+) 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 +} +