same
This commit is contained in:
parent
ae1f8029d8
commit
ff636bc355
1 changed files with 2 additions and 1 deletions
|
@ -40,6 +40,7 @@ $("#login-button").click(function (e) {
|
|||
localStorage.setItem("isAdmin", data.user.isAdmin);
|
||||
if (data.user.isAdmin) {
|
||||
show_page('#admin-page');
|
||||
get_admin("prank");
|
||||
} else {
|
||||
show_page('#demande-page');
|
||||
}
|
||||
|
@ -91,7 +92,7 @@ function get_admin(type) {
|
|||
$("#admin-content").innerHTML = "";
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: base_url + "login",
|
||||
url: base_url + "get",
|
||||
data: JSON.stringify({
|
||||
uid: localStorage.getItem('user'),
|
||||
token: localStorage.getItem('token'),
|
||||
|
|
Loading…
Reference in a new issue