Skip to content

Commit

Permalink
On create-course page: reset yearW to empty string when year < 2000
Browse files Browse the repository at this point in the history
  • Loading branch information
YiranDuan721 committed Nov 27, 2023
1 parent f729e2e commit f61c02b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/template/admin/admin_tabs/create-course.gohtml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{{define "create-course"}}
<div class="text-1 container mx-auto"
x-data="{ tumonlineid: '', slug: '', title: '', year: '', yearW: '', semester: 'Wintersemester', numberAttendees: null, searchQuery: '', searchResults: [] , isSearchResultVisible: false}"
x-init="$watch('year',(value)=>{if(value<2000)return; yearW = (value%1000) + 1})">
x-init="$watch('year',(value)=>{ yearW = (value<2000) ? '' : (value%1000) + 1 })">
<div class="min-w-screen flex items-center justify-center">
<div class="w-full lg:w-5/6 p-3 bg-gray-100 dark:bg-secondary rounded dark:border dark:border-gray-500 shadow">
<h2 class="mb-0">Find your course from TUMOnline</h2>
Expand Down

0 comments on commit f61c02b

Please sign in to comment.