aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/styles/subsilver2/template/overall_header.html
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/styles/subsilver2/template/overall_header.html')
-rw-r--r--phpBB/styles/subsilver2/template/overall_header.html13
1 files changed, 10 insertions, 3 deletions
diff --git a/phpBB/styles/subsilver2/template/overall_header.html b/phpBB/styles/subsilver2/template/overall_header.html
index 6db4f85690..a2ed06132d 100644
--- a/phpBB/styles/subsilver2/template/overall_header.html
+++ b/phpBB/styles/subsilver2/template/overall_header.html
@@ -39,12 +39,19 @@ function popup(url, width, height, name)
function jumpto()
{
var page = prompt('{LA_JUMP_PAGE}:', '{ON_PAGE}');
- var perpage = '{PER_PAGE}';
+ var per_page = '{PER_PAGE}';
var base_url = '{A_BASE_URL}';
- if (page !== null && !isNaN(page) && page > 0)
+ if (page !== null && !isNaN(page) && page == Math.floor(page) && page > 0)
{
- document.location.href = base_url.replace(/&/g, '&') + '&start=' + ((page - 1) * perpage);
+ if (base_url.indexOf('?') == -1)
+ {
+ document.location.href = base_url + '?start=' + ((page - 1) * per_page);
+ }
+ else
+ {
+ document.location.href = base_url.replace(/&/g, '&') + '&start=' + ((page - 1) * per_page);
+ }
}
}