mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Forgot to refresh scrolling element..
This commit is contained in:
@@ -46,6 +46,9 @@ socket.on("pw", function(msg)
|
||||
$("input[name="+names[i]+"]").attr("disabled", false);
|
||||
}
|
||||
$(".card-action").removeClass("hide");
|
||||
|
||||
refresh_scroll();
|
||||
|
||||
localStorage.setItem("passord_i_klartekst_lol", msg);
|
||||
Materialize.toast("Correct Password. You are now admin", 4000);
|
||||
});
|
||||
|
||||
@@ -95,8 +95,7 @@ function populate_list(msg, conf_only)
|
||||
myScroll.maxScrollY = myScroll.maxScrollY - 5;
|
||||
}else
|
||||
{
|
||||
myScroll.refresh();
|
||||
myScroll.maxScrollY = myScroll.maxScrollY - 5; //Hackish solution for not being able to scroll fully to the bottom, don't understand why this is fucked
|
||||
refresh_scroll();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -123,6 +122,12 @@ function skip(){
|
||||
socket.emit('skip', [chan, guid]);
|
||||
}
|
||||
|
||||
function refresh_scroll()
|
||||
{
|
||||
myScroll.refresh();
|
||||
myScroll.maxScrollY = myScroll.maxScrollY - 5;
|
||||
}
|
||||
|
||||
function show(){
|
||||
if(!window.mobilecheck())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user