[ticket/11795] Remove PM popup

PHPBB3-11795
This commit is contained in:
Vjacheslav Trushkin 2013-09-06 10:17:10 +03:00
parent 973f4bc887
commit d27bc857f3
3 changed files with 1 additions and 14 deletions

View file

@ -425,12 +425,6 @@ function insert_single_user(formId, user)
jumpto($(this)); jumpto($(this));
}); });
// PM popup
$('body[data-popup-pm-url]').each(function() {
var url = this.getAttribute('data-popup-pm-url');
window.open(url.replace(/&/g, '&'), '_phpbbprivmsg', 'height=225,resizable=yes,scrollbars=yes, width=400');
});
// Adjust HTML code for IE8 and older versions // Adjust HTML code for IE8 and older versions
var test = document.createElement('div'), var test = document.createElement('div'),
oldBrowser = (typeof test.style.borderRadius == 'undefined'); oldBrowser = (typeof test.style.borderRadius == 'undefined');

View file

@ -36,16 +36,12 @@
<link href="{T_THEME_PATH}/tweaks.css?assets_version={T_ASSETS_VERSION}" rel="stylesheet" type="text/css" media="screen, projection" /> <link href="{T_THEME_PATH}/tweaks.css?assets_version={T_ASSETS_VERSION}" rel="stylesheet" type="text/css" media="screen, projection" />
<![endif]--> <![endif]-->
<!-- IF S_USER_PM_POPUP and S_NEW_PM -->
{% set body_attributes %}{{ body_attributes }} data-popup-pm-url="{U_POPUP_PM|e('html_attr')}"{% endset %}
<!-- ENDIF -->
<!-- EVENT overall_header_head_append --> <!-- EVENT overall_header_head_append -->
{$STYLESHEETS} {$STYLESHEETS}
</head> </head>
<body id="phpbb" class="section-{SCRIPT_NAME} {S_CONTENT_DIRECTION}"{{ body_attributes }}> <body id="phpbb" class="section-{SCRIPT_NAME} {S_CONTENT_DIRECTION}">
<div id="wrap"> <div id="wrap">
<a id="top" accesskey="t"></a> <a id="top" accesskey="t"></a>

View file

@ -22,9 +22,6 @@
<script type="text/javascript"> <script type="text/javascript">
// <![CDATA[ // <![CDATA[
<!-- IF S_USER_PM_POPUP and S_NEW_PM -->
popup('{U_POPUP_PM|e('js')}', 400, 225, '_phpbbprivmsg');
<!-- ENDIF -->
function popup(url, width, height, name) function popup(url, width, height, name)
{ {