jumpto fixes for Mozilla

git-svn-id: file:///svn/phpbb/trunk@4623 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2003-10-22 12:20:41 +00:00
parent 4c06be0324
commit 1a616b2965

View file

@ -6,7 +6,7 @@
{META} {META}
<title>{SITENAME} :: {PAGE_TITLE}</title> <title>{SITENAME} :: {PAGE_TITLE}</title>
<!-- IF T_STYLESHEET_LINK --> <!-- 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 --> <!-- ELSE -->
<style type="text/css"> <style type="text/css">
<!-- <!--
@ -34,10 +34,11 @@ function jumpto()
{ {
var page = prompt('{L_JUMP_PAGE}:', '{ON_PAGE}'); var page = prompt('{L_JUMP_PAGE}:', '{ON_PAGE}');
var perpage = '{PER_PAGE}'; var perpage = '{PER_PAGE}';
var base_url = '{BASE_URL}';
if (page !== null && !isNaN(page) && page > 0) if (page !== null && !isNaN(page) && page > 0)
{ {
document.location.href = "{BASE_URL}&amp;start=" + ((page - 1) * perpage); document.location.href = base_url.replace('&amp;', '&') + '&start=' + ((page - 1) * perpage);
} }
} }
//--> //-->