fix: formatting
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
frappe.ready(function() {
|
frappe.ready(function () {
|
||||||
frappe.web_form.after_save = () => {
|
frappe.web_form.after_save = () => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
window.history.back();
|
window.history.back();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
})
|
});
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import frappe
|
|||||||
from frappe import _
|
from frappe import _
|
||||||
from lms.lms.utils import has_course_moderator_role
|
from lms.lms.utils import has_course_moderator_role
|
||||||
|
|
||||||
|
|
||||||
def get_context(context):
|
def get_context(context):
|
||||||
|
|
||||||
if not has_course_moderator_role():
|
if not has_course_moderator_role():
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
frappe.ready(() => {
|
frappe.ready(() => {
|
||||||
|
|
||||||
$(".clickable-row").click((e) => {
|
$(".clickable-row").click((e) => {
|
||||||
window.location.href = $(e.currentTarget).data("href");
|
window.location.href = $(e.currentTarget).data("href");
|
||||||
});
|
});
|
||||||
|
});
|
||||||
})
|
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ def get_context(context):
|
|||||||
course.evaluations = frappe.get_all(
|
course.evaluations = frappe.get_all(
|
||||||
"LMS Certificate Evaluation",
|
"LMS Certificate Evaluation",
|
||||||
{"course": course.course, "member": context.student.name},
|
{"course": course.course, "member": context.student.name},
|
||||||
["rating", "status", "creation", "name"]
|
["rating", "status", "creation", "name"],
|
||||||
)
|
)
|
||||||
|
|
||||||
context.class_courses = class_courses
|
context.class_courses = class_courses
|
||||||
|
|||||||
Reference in New Issue
Block a user