diff options
Diffstat (limited to 'phpBB/adm/style/simple_header.html')
-rw-r--r-- | phpBB/adm/style/simple_header.html | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/phpBB/adm/style/simple_header.html b/phpBB/adm/style/simple_header.html index 882026a1c1..3e36c47988 100644 --- a/phpBB/adm/style/simple_header.html +++ b/phpBB/adm/style/simple_header.html @@ -12,11 +12,25 @@ <link href="style/admin.css" rel="stylesheet" type="text/css" media="screen" /> <script type="text/javascript"> -<!-- +// <![CDATA[ var jump_page = '{LA_JUMP_PAGE}:'; var on_page = '{ON_PAGE}'; var per_page = '{PER_PAGE}'; -var base_url = '{BASE_URL}'; +var base_url = '{A_BASE_URL}'; + +/** +* Window popup +*/ +function popup(url, width, height, name) +{ + if (!name) + { + name = '_popup'; + } + + window.open(url.replace(/&/g, '&'), name, 'height=' + height + ',resizable=yes,scrollbars=yes, width=' + width); + return false; +} /** * Jump to page @@ -76,26 +90,13 @@ function marklist(id, name, state) /** * Find a member */ -function find_username() -{ - <!-- IF UA_FIND_USERNAME --> - window.open('{UA_FIND_USERNAME}', '_usersearch', 'height=570, resizable=yes, scrollbars=yes, width=760'); - <!-- ENDIF --> - return false; -} - -/** -* Color swatch -*/ -function swatch(field) +function find_username(url) { - <!-- IF UA_SWATCH --> - window.open('{UA_SWATCH}' + field, '_swatch', 'height=150, resizable=yes, scrollbars=no, width=636'); - <!-- ENDIF --> + popup(url, 760, 570, '_usersearch'); return false; } -//--> +// ]]> </script> </head> |