1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-11 11:13:59 +02:00

[ticket/11795] Move PM popup JS to forum_fn.js

Move PM popup JavaScript from overall_header to forum_fn.js
Use TWIG to escape PM popup URL

PHPBB3-11795
This commit is contained in:
Vjacheslav Trushkin
2013-08-16 19:45:38 +03:00
parent 4c2aad4ca9
commit 22c8df5403
4 changed files with 12 additions and 14 deletions

View File

@@ -323,6 +323,12 @@ jQuery(document).ready(apply_onkeypress_event);
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
var test = document.createElement('div'),
oldBrowser = (typeof test.style.borderRadius == 'undefined');