mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
jumpto fixes for Mozilla
git-svn-id: file:///svn/phpbb/trunk@4623 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
4c06be0324
commit
1a616b2965
1 changed files with 3 additions and 2 deletions
|
@ -6,7 +6,7 @@
|
|||
{META}
|
||||
<title>{SITENAME} :: {PAGE_TITLE}</title>
|
||||
<!-- IF T_STYLESHEET_LINK -->
|
||||
<link rel="stylesheet" href="{T_STYLESHEET_LINK}" type="text/css">
|
||||
<link rel="stylesheet" href="{T_STYLESHEET_LINK}" name="{T_STYLESHEET_NAME}" type="text/css">
|
||||
<!-- ELSE -->
|
||||
<style type="text/css">
|
||||
<!--
|
||||
|
@ -34,10 +34,11 @@ function jumpto()
|
|||
{
|
||||
var page = prompt('{L_JUMP_PAGE}:', '{ON_PAGE}');
|
||||
var perpage = '{PER_PAGE}';
|
||||
var base_url = '{BASE_URL}';
|
||||
|
||||
if (page !== null && !isNaN(page) && page > 0)
|
||||
{
|
||||
document.location.href = "{BASE_URL}&start=" + ((page - 1) * perpage);
|
||||
document.location.href = base_url.replace('&', '&') + '&start=' + ((page - 1) * perpage);
|
||||
}
|
||||
}
|
||||
//-->
|
||||
|
|
Loading…
Add table
Reference in a new issue