Fixed suggestions notifier error

This commit is contained in:
Kasper Rynning-Tønnesen
2018-04-26 13:07:48 +02:00
parent 58ccdada3b
commit 5478b6a6e2
10 changed files with 63 additions and 73 deletions

View File

@@ -871,11 +871,11 @@ function before_toast(){
}
function scrollChat() {
var current = document.querySelector(".chat-tab active").getAttribute("href");
var current = document.querySelector(".chatTabs .active").getAttribute("href");
if(current == "#channelchat") {
document.querySelector('#chatchannel').scrollTop(document.querySelector('#chatchannel').scrollHeight);
document.querySelector('#chatchannel').scrollTop = document.querySelector('#chatchannel').scrollHeight;
} else if(current == "#all_chat") {
document.querySelector('#chatall').scrollTop(document.querySelector('#chatall').scrollHeight);
document.querySelector('#chatall').scrollTop = document.querySelector('#chatall').scrollHeight;
}
}