fix: show only first line in questions table

This commit is contained in:
Jannat Patel
2023-06-13 19:39:00 +05:30
parent 43128d7ea3
commit 89206f94f0
4 changed files with 15 additions and 11 deletions
+2 -1
View File
@@ -12,7 +12,7 @@ frappe.ready(() => {
save_current_lesson();
$(".option").click((e) => {
enable_check(e);
if (!$("#check").hasClass("hide")) enable_check(e);
});
$(".possibility").keyup((e) => {
@@ -286,6 +286,7 @@ const show_indicator = (class_name, element) => {
const add_icon = (element, icon) => {
$(element).closest(".custom-checkbox").removeClass("active-option");
$(element).closest(".option").addClass("hide");
let label = $(element).siblings(".option-text").text();
$(element).siblings(".option-text").html(`
<div>