Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-13975

Jump to Page does not work

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 3.1.5
    • Fix Version/s: None
    • Component/s: JavaScript / AJAX
    • Labels:

      Description

      At the moment the Jump to page function does not work with Firefox. Try it in your forum

      The error is the if-check in the function "pageJump" in forum_fn.js:
      if (page !== null && !isNaN(page) && page === Math.floor(page) && page > 0)

      This is never true: page === Math.floor(page)
      Because page is a String and Math.floor(page) an integer.

      Solution 1: Do not check the type:
      page == Math.floor(page)

      Solution 2: Cast the String to Integer:
      Number(page) === Math.floor(page)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              Tacitus89 Tacitus89 [X] (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: