[ticket/11555] Fix page comparison

Strict comparison should not be used to compare string and number

PHPBB3-11555
This commit is contained in:
Vjacheslav Trushkin 2013-05-19 10:56:15 +03:00
parent d8ed228ddf
commit 9435f16f59

View file

@ -20,7 +20,7 @@ function popup(url, width, height, name) {
function jumpto() {
var page = prompt(jump_page, on_page);
if (page !== null && !isNaN(page) && page === Math.floor(page) && page > 0) {
if (page !== null && !isNaN(page) && page == Math.floor(page) && page > 0) {
if (base_url.indexOf('?') === -1) {
document.location.href = base_url + '?start=' + ((page - 1) * per_page);
} else {