Renamed academy to lms (Client Side)

This commit is contained in:
scmmishra
2018-11-13 16:47:46 +05:30
committed by Aditya Hase
parent 35bf561a6f
commit 1fbe2d4b2b
21 changed files with 50 additions and 50 deletions

View 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)
});
}
});