fix: formatting
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
frappe.ready(function() {
|
||||
frappe.ready(function () {
|
||||
frappe.web_form.after_save = () => {
|
||||
setTimeout(() => {
|
||||
window.history.back();
|
||||
});
|
||||
};
|
||||
})
|
||||
});
|
||||
|
||||
@@ -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():
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
frappe.ready(() => {
|
||||
|
||||
$(".clickable-row").click((e) => {
|
||||
window.location.href = $(e.currentTarget).data("href");
|
||||
});
|
||||
|
||||
})
|
||||
});
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user