MyBB Community Forums

Full Version: MyAlert Dropdown Twice
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I think only enuator can tell me how to fix this issue? When I click on the Myalert, the dropdown is showing twice. Please tell me how to fix it?

Problem Solved:
1) check if myalerts.js present more than once in the headerinclude. If present delete it. So that only one myalerts.js is there.

also check this:
2) Sometime this whole code repeated twice in the headerinclude. If that so, delete it.
<script type="text/javascript">
if (typeof jQuery == 'undefined')
{
	document.write(unescape("%3Cscript src='http://code.jquery.com/jquery-1.7.2.min.js' type='text/javascript'%3E%3C/script%3E"));
}
</script>
<script type="text/javascript">
	var unreadAlerts = {$mybb->user['unreadAlerts']};
</script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/myalerts.js"></script>
{$stylesheets}