From f61c02bb3ffbc79fb5ddf8b5d0b0bb392a8784c5 Mon Sep 17 00:00:00 2001 From: meandaD Date: Mon, 27 Nov 2023 15:27:37 +0100 Subject: [PATCH] On create-course page: reset yearW to empty string when year < 2000 --- web/template/admin/admin_tabs/create-course.gohtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/template/admin/admin_tabs/create-course.gohtml b/web/template/admin/admin_tabs/create-course.gohtml index 4fd3194fa..b988db9aa 100644 --- a/web/template/admin/admin_tabs/create-course.gohtml +++ b/web/template/admin/admin_tabs/create-course.gohtml @@ -3,7 +3,7 @@ {{define "create-course"}}
+ x-init="$watch('year',(value)=>{ yearW = (value<2000) ? '' : (value%1000) + 1 })">

Find your course from TUMOnline