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:
@@ -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');
|
||||
|
Reference in New Issue
Block a user