[ticket/9989] Skip PM popup in overall_header.html, if there are no new PMs.

PHPBB3-9989
This commit is contained in:
Joas Schilling 2011-01-29 16:13:36 +01:00
parent afc856417f
commit 90f5e4e2b1
2 changed files with 5 additions and 11 deletions

View file

@ -46,12 +46,9 @@
var onload_functions = new Array(); var onload_functions = new Array();
var onunload_functions = new Array(); var onunload_functions = new Array();
<!-- IF S_USER_PM_POPUP --> <!-- IF S_USER_PM_POPUP and S_NEW_PM -->
if ({S_NEW_PM})
{
var url = '{UA_POPUP_PM}'; var url = '{UA_POPUP_PM}';
window.open(url.replace(/&amp;/g, '&'), '_phpbbprivmsg', 'height=225,resizable=yes,scrollbars=yes, width=400'); window.open(url.replace(/&amp;/g, '&'), '_phpbbprivmsg', 'height=225,resizable=yes,scrollbars=yes, width=400');
}
<!-- ENDIF --> <!-- ENDIF -->
/** /**

View file

@ -28,11 +28,8 @@
<script type="text/javascript"> <script type="text/javascript">
// <![CDATA[ // <![CDATA[
<!-- IF S_USER_PM_POPUP --> <!-- IF S_USER_PM_POPUP and S_NEW_PM -->
if ({S_NEW_PM})
{
popup('{UA_POPUP_PM}', 400, 225, '_phpbbprivmsg'); popup('{UA_POPUP_PM}', 400, 225, '_phpbbprivmsg');
}
<!-- ENDIF --> <!-- ENDIF -->
function popup(url, width, height, name) function popup(url, width, height, name)