summaryrefslogtreecommitdiff
path: root/templates/html_head_inc.tpl
blob: 08dd42d3c80b3fc034f8135a1436c3e2f99cef7a (plain)
1
2
3
4
5
6
7
8
9
{* not working currently if $unreadMsgs and $gBitUser->getPreference('messages_alert') == 'y' and !$smarty.cookies.messages_alert_sent}
	<script type="text/javascript">
		var redirect = confirm( '{tr}You have {$unreadMsgs} message(s) waiting for you in your personal message box. Click OK to view your messages.{/tr}' );
		if( redirect == true ) {ldelim}
			window.location="{$smarty.const.MESSAGES_PKG_URL}message_box.php";
		{rdelim}
		BitBase.setCookie( 'messages_alert_sent', true );
	</script>
{/if*}