Hatgetippt hinzugefügt (muss noch debuggt werden)
This commit is contained in:
@@ -1,13 +1,25 @@
|
||||
import $ from "jquery";
|
||||
class User {
|
||||
public username: string;
|
||||
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;
|
||||
let hatgetippt=false;
|
||||
$.ajax(RitzenbergenLib.api("/bulitipp/hatgetippt.php?userid="+id),{
|
||||
async: false,
|
||||
success(response:string){
|
||||
hatgetippt=response=="true";
|
||||
}
|
||||
})
|
||||
this.hatgetippt=hatgetippt;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user