moved admin panel buttons to separate div
This commit is contained in:
parent
da7f8510bb
commit
8b1e1185ee
@ -3,18 +3,16 @@
|
|||||||
Zde budou uživatelé.
|
Zde budou uživatelé.
|
||||||
</div>
|
</div>
|
||||||
<div id="right_panel">
|
<div id="right_panel">
|
||||||
<button onclick="remove_user()" id="remove_btn">Odstranit Uživatele</button>
|
<div id="buttons">
|
||||||
|
<button class="btn">Uložit Změny</button>
|
||||||
|
<button onclick="remove_user()" class="btn">Odstranit Uživatele</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
var right_panel_buffer = null;
|
var right_panel_buffer = null;
|
||||||
var username = null;
|
var username = null;
|
||||||
|
|
||||||
$(document).ready(function()
|
|
||||||
{
|
|
||||||
$("#remove_btn").hide();
|
|
||||||
});
|
|
||||||
|
|
||||||
$.ajax
|
$.ajax
|
||||||
({
|
({
|
||||||
url: "./res/forum/api/list_users.php",
|
url: "./res/forum/api/list_users.php",
|
||||||
@ -32,7 +30,7 @@
|
|||||||
|
|
||||||
$("#left_panel").on("click", ".output", function(event)
|
$("#left_panel").on("click", ".output", function(event)
|
||||||
{
|
{
|
||||||
$("#remove_btn").show();
|
$("#buttons").show();
|
||||||
if (right_panel_buffer == null) right_panel_buffer = document.getElementById("right_panel").innerHTML;
|
if (right_panel_buffer == null) right_panel_buffer = document.getElementById("right_panel").innerHTML;
|
||||||
|
|
||||||
username = event.target.innerHTML;
|
username = event.target.innerHTML;
|
||||||
|
@ -75,14 +75,22 @@ img:hover
|
|||||||
margin-top: 1.5vh;
|
margin-top: 1.5vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
#remove_btn
|
#buttons
|
||||||
{
|
{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0.3vh;
|
bottom: 0.3vh;
|
||||||
right: 0.3vh;
|
right: 0.3vh;
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn
|
||||||
|
{
|
||||||
|
width: fit-content;
|
||||||
|
|
||||||
width: 10%;
|
|
||||||
padding: 0.3vh;
|
padding: 0.3vh;
|
||||||
|
padding-left: 0.9vh;
|
||||||
|
padding-right: 0.9vh;
|
||||||
|
|
||||||
background-color: #9E6812;
|
background-color: #9E6812;
|
||||||
border: 1px solid #3E392F;
|
border: 1px solid #3E392F;
|
||||||
color: #C1BFBE;
|
color: #C1BFBE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user