Merge branch 'main' of https://github.com/frappe/lms into class-revamp
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
frappe.ready(() => {
|
||||
setup_file_size();
|
||||
pin_header();
|
||||
setup_router();
|
||||
|
||||
$(".join-batch").click((e) => {
|
||||
join_course(e);
|
||||
@@ -42,6 +43,14 @@ frappe.ready(() => {
|
||||
});
|
||||
});
|
||||
|
||||
const setup_router = () => {
|
||||
frappe.router = {
|
||||
slug(name) {
|
||||
return name.toLowerCase().replace(/ /g, "-");
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
const pin_header = () => {
|
||||
const el = document.querySelector(".sticky");
|
||||
if (el) {
|
||||
|
||||
Reference in New Issue
Block a user