Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/hossainemruz/toha.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmruz Hossain <hossainemruz@gmail.com>2021-03-23 18:46:41 +0300
committerGitHub <noreply@github.com>2021-03-23 18:46:41 +0300
commit2af89479bee6cac2012a7b6c5603dd3712e7fa49 (patch)
treec794750df95a7097e20c67adeee93cf744f9c0d1 /layouts/partials/sections/education.html
parentcf88e957820a2b32c9b4dd9bb29cec68f23ed626 (diff)
Fix courses visibility toggler button (#257)
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
Diffstat (limited to 'layouts/partials/sections/education.html')
-rw-r--r--layouts/partials/sections/education.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/partials/sections/education.html b/layouts/partials/sections/education.html
index 21c195c..ec043f4 100644
--- a/layouts/partials/sections/education.html
+++ b/layouts/partials/sections/education.html
@@ -78,7 +78,9 @@
{{ end }}
{{ if gt (len .takenCourses.courses ) 2 }}
<button type="button" class="btn btn-link show-more-btn pt-0 {{ if .takenCourses.showGrades }}ml-1{{ else }}ml-2{{ end }}"
- onclick="showMoreCourses(this);">{{ i18n "see_more"}}</button>
+ onclick="toggleCourseVisibility(this);" id="show-more-btn">{{ i18n "show_more"}}</button>
+ <button type="button" class="btn btn-link show-more-btn hidden pt-0 {{ if .takenCourses.showGrades }}ml-1{{ else }}ml-2{{ end }}"
+ onclick="toggleCourseVisibility(this);" id="show-less-btn">{{ i18n "show_less"}}</button>
{{ end }}
</div>
{{ end }}