added not working button for user removing
This commit is contained in:
parent
d101bab147
commit
ab264d780f
@ -3,10 +3,12 @@
|
||||
Zde budou uživatelé.
|
||||
</div>
|
||||
<div id="right_panel">
|
||||
B
|
||||
<button id="remove_btn">Odstranit Uživatele</button>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
let right_panel_buffer = null;
|
||||
|
||||
$.ajax
|
||||
({
|
||||
url: "./res/forum/api/list_users.php",
|
||||
@ -18,12 +20,14 @@
|
||||
|
||||
$("#left_panel").on("click", ".output", function(event)
|
||||
{
|
||||
if (right_panel_buffer == null) right_panel_buffer = document.getElementById("right_panel").innerHTML;
|
||||
|
||||
$.ajax
|
||||
({
|
||||
url: "./res/forum/api/user_info.php?username=" + event.target.innerHTML,
|
||||
success: function(result)
|
||||
{
|
||||
$("#right_panel").html(result);
|
||||
$("#right_panel").html(result + right_panel_buffer);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
@ -73,4 +73,18 @@ img:hover
|
||||
.output + .output
|
||||
{
|
||||
margin-top: 1.5vh;
|
||||
}
|
||||
|
||||
#remove_btn
|
||||
{
|
||||
position: absolute;
|
||||
bottom: 0.3vh;
|
||||
right: 0.3vh;
|
||||
|
||||
width: 10%;
|
||||
padding: 0.3vh;
|
||||
background-color: #9E6812;
|
||||
border: 1px solid #3E392F;
|
||||
color: #C1BFBE;
|
||||
border-radius: 0.3vh 0.3vh;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user