mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 11:49:10 +00:00
Renamed academy to lms (Client Side)
This commit is contained in:
15
erpnext/public/js/education/lms/call.js
Normal file
15
erpnext/public/js/education/lms/call.js
Normal file
@@ -0,0 +1,15 @@
|
||||
frappe.ready(() => {
|
||||
frappe.provide('lms');
|
||||
|
||||
lms.call = (method, args) => {
|
||||
const method_path = 'erpnext.www.lms.' + method;
|
||||
return new Promise((resolve, reject) => {
|
||||
return frappe.call({
|
||||
method: method_path,
|
||||
args,
|
||||
})
|
||||
.then(r => resolve(r.message))
|
||||
.fail(reject)
|
||||
});
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user