fix: formatting

This commit is contained in:
Jannat Patel
2022-11-23 15:14:15 +05:30
parent 91e71091ef
commit 96849afcba
4 changed files with 5 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
frappe.ready(function() {
frappe.ready(function () {
frappe.web_form.after_save = () => {
setTimeout(() => {
window.history.back();
});
};
})
});

View File

@@ -2,6 +2,7 @@ import frappe
from frappe import _
from lms.lms.utils import has_course_moderator_role
def get_context(context):
if not has_course_moderator_role():

View File

@@ -1,7 +1,5 @@
frappe.ready(() => {
$(".clickable-row").click((e) => {
window.location.href = $(e.currentTarget).data("href");
});
})
});

View File

@@ -48,7 +48,7 @@ def get_context(context):
course.evaluations = frappe.get_all(
"LMS Certificate Evaluation",
{"course": course.course, "member": context.student.name},
["rating", "status", "creation", "name"]
["rating", "status", "creation", "name"],
)
context.class_courses = class_courses