Merge branch 'main' of https://github.com/frappe/lms into class-revamp

This commit is contained in:
Jannat Patel
2023-07-24 18:25:58 +05:30
20 changed files with 546 additions and 132 deletions

View File

@@ -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) {