I'm working on a messed up project of Joomla where most of the things are made in core, like passing option=com_admn&view=displayUsers
. We've a blog page where all the blogs are listed. As I can clearly see, the title of the page is set to Blogs list- ProjectName
while the document is loading but as soon as the page is loaded completely, the title is over riden and is set to ProjectName
. When I checked the same in FireBug, I found that title
was being updated every 2 secs, I guess, by javascript.
I've tried changing global as well as article and menu settings but that doesn't seem to help. Please enlighten me by pointing out the issue and the solution.
Ok I think I found the issue.
You have a JS file called chatnew.js which I believe is part of the comments section below the blog post.
/templates/learnmile/js/chatnew.js
This file contains the following function:
function blink(selector)
{
if($(selector).hasClass("chatbord"))
{
$(selector).removeClass("chatbord");
document.title = $(selector).html();
}
else
{
$(selector).addClass("chatbord");
document.title = "Parentune"; // <<< HERE IS THE PROBLEM
}
setTimeout(function(){blink(selector)},2000);
}
I have added a comment in the code above which is replacing the title.