Full path instead of relative for assets on chat

This commit is contained in:
Kasper Rynning-Tønnesen
2017-06-15 13:52:43 +02:00
parent 2a87d4f10e
commit e76f9f59b5
3 changed files with 8 additions and 8 deletions

File diff suppressed because one or more lines are too long

View File

@@ -81,7 +81,7 @@ var Chat = {
if(inp.msg.substring(0,1) == ":" && !chat_active)
{
Chat.all_received += 1;
$("#favicon").attr("href", "assets/images/highlogo.png");
$("#favicon").attr("href", "/assets/images/highlogo.png");
unseen = true;
chat_unseen = true;
if($(".chat-link span.badge.new.white").hasClass("hide")){
@@ -95,7 +95,7 @@ var Chat = {
if(document.hidden)
{
$("#favicon").attr("href", "assets/images/highlogo.png");
$("#favicon").attr("href", "/assets/images/highlogo.png");
}
if($("#chatall").children().length > 100){
@@ -119,7 +119,7 @@ var Chat = {
{
if(data.msg.substring(0,1) == ":" && !chat_active)
{
$("#favicon").attr("href", "assets/images/highlogo.png");
$("#favicon").attr("href", "/assets/images/highlogo.png");
unseen = true;
chat_unseen = true;
Chat.channel_received += 1;

View File

@@ -1350,7 +1350,7 @@ $(document).on("submit", "#listImportSpotify", function(e){
});
$(window).focus(function(){
$("#favicon").attr("href", "assets/images/favicon.png");
$("#favicon").attr("href", "/assets/images/favicon.png");
unseen = false;
});
@@ -1389,7 +1389,7 @@ $(document).on("click", ".chat-link", function(){
$(".chat-link span.badge.new.white").addClass("hide");
}
unseen = false;
$("#favicon").attr("href", "assets/images/favicon.png");
$("#favicon").attr("href", "/assets/images/favicon.png");
});
function searchTimeout(event) {
@@ -1441,7 +1441,7 @@ $(document).on("click", ".chat-link", function(e){
chat_unseen = false;
$(".chat-link").attr("style", "color: white !important;");
blinking = false;
$("#favicon").attr("href", "assets/images/favicon.png");
$("#favicon").attr("href", "/assets/images/favicon.png");
$("#chatPlaylist").css("display", "block");
$("#wrapper").css("display", "none");
$("#suggestions").css("display", "none");
@@ -1840,7 +1840,7 @@ function onepage_load(){
else $("main").append($(response.find("#main_section_frontpage")).wrap("<div>").parent().html());
$(".page-footer").removeClass("padding-bottom-extra");
$(".page-footer").removeClass("padding-bottom-novideo");
$("#favicon").attr("href", "assets/images/favicon.png");
$("#favicon").attr("href", "/assets/images/favicon.png");
$(".context-menu-list").remove();
Helper.log(socket);