diff --git a/community/lms/widgets/ChapterTeaser.html b/community/lms/widgets/ChapterTeaser.html index 24433cd9..99156592 100644 --- a/community/lms/widgets/ChapterTeaser.html +++ b/community/lms/widgets/ChapterTeaser.html @@ -21,8 +21,7 @@
{% if membership or lesson.include_in_preview %} - {{ lesson.title }} @@ -56,6 +55,11 @@ diff --git a/community/www/courses/course.js b/community/www/courses/course.js index 4429816b..38dab23c 100644 --- a/community/www/courses/course.js +++ b/community/www/courses/course.js @@ -29,10 +29,6 @@ frappe.ready(() => { show_review_dialog(e); }); - $(".chapter-title").click((e) => { - rotate_chapter_icon(e); - }); - $(".icon-rating").click((e) => { highlight_rating(e); }); @@ -168,16 +164,6 @@ var show_review_dialog = (e) => { $("#review-modal").modal("show"); } -var rotate_chapter_icon = (e) => { - e.preventDefault(); - var icon = $(e.currentTarget).children(".chapter-icon"); - if (icon.css("transform") == "none") { - icon.css("transform", "rotate(90deg)"); - } else { - icon.css("transform", "none"); - } -} - var highlight_rating = (e) => { var rating = $(e.currentTarget).attr("data-rating"); $(".icon-rating").removeClass("star-click");