Aktualisieren src/jsx/class/students_loader.jsx, src/jsx/class/class_loader.jsx Dateien
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
export class Classes{
|
export class Classes{
|
||||||
static class_list = [];
|
static class_list = [];
|
||||||
static load_Classes(cb){
|
static load_Classes(cb){
|
||||||
fetch('/data/class/classes.json')
|
fetch('data/class/classes.json')
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(data => cb(data));
|
.then(data => cb(data));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
export class Students_loader{
|
export class Students_loader{
|
||||||
static loadStudents(cl,cb){
|
static loadStudents(cl,cb){
|
||||||
fetch('/data/class/'+cl+'/user.json')
|
fetch('data/class/'+cl+'/user.json')
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(data => cb(data));
|
.then(data => cb(data));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user