• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.1 Stop AlertsMenu_Counter to dissapear

CyberAP

Well-known member
#1
It seems like in 1.1 something changed with the behaviour of #AlertsMenu_Counter. In 1.0.x I could just remove data-removeCounter="#AlertsMenu_Counter" property and AlertsMenu_Counter didn't dissapear. But in 1.1 it dissapers even if I hover on inbox link. How can it be solved?
 

Jake Bunce

XenForo moderator
Staff member
#2
Yeah that change behaves different for me too.

I was able to achieve the same behavior in 1.1 by removing both references to AlertsMenu_Counter:

Code:
	<!-- alerts popup -->
	<li class="navTab alerts Popup PopupControl PopupClosed">	
					
		<a href="{xen:link account/alerts}" rel="Menu" class="navLink NoPopupGadget">{xen:phrase alerts}
			<strong class="itemCount {xen:if {$visitor.alerts_unread}, '', 'Zero'}"
				id="AlertsMenu_Counter" data-text="{xen:phrase you_have_x_new_alerts}">
				<span class="Total">{xen:number $visitor.alerts_unread}</span>
				<span class="arrow"></span>
			</strong>
		</a>
		
		<div class="Menu JsOnly navPopup" id="AlertsMenu"
			data-contentSrc="{xen:link 'account/alerts-popup'}"
			data-contentDest="#AlertsMenu .listPlaceholder"
			data-removeCounter="#AlertsMenu_Counter">
			
			<div class="menuHeader primaryContent">
				<h3>