Modal Tabelle hinzugefügt
This commit is contained in:
@@ -4,22 +4,21 @@ class User {
|
||||
public kuerzel: string;
|
||||
public points: number;
|
||||
public id: number;
|
||||
public hatgetippt: boolean;
|
||||
constructor (username: string, kuerzel: string, points: number, id: number) {
|
||||
this.username = username;
|
||||
this.kuerzel = kuerzel;
|
||||
this.points=points;
|
||||
this.id=id;
|
||||
}
|
||||
hatgetippt():boolean{
|
||||
let hatgetippt=false;
|
||||
$.ajax(RitzenbergenLib.api("/bulitipp/hatgetippt.php?userid="+id),{
|
||||
$.ajax(RitzenbergenLib.api("/bulitipp/hatgetippt.php?userid="+this.id),{
|
||||
async: false,
|
||||
success(response:string){
|
||||
hatgetippt=response=="true";
|
||||
success(response:boolean){
|
||||
hatgetippt=response;
|
||||
}
|
||||
})
|
||||
this.hatgetippt=hatgetippt;
|
||||
|
||||
|
||||
});
|
||||
return hatgetippt;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user