DataTables / DataTables/Plugins

current page does not update in both upper and lower pagination displays

Open
#390 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.1k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

SOLUTION - THIS IS NOT A FUNCTION ISSUE JUST A DISPLAY ISSUE.
THIS SEEMS TO HAVE CORRECTED THE PROBLEM:

       // between this LINE
        var an = oSettings.aanFeatures.p;

        // added this
        //Correction upper and lower current page were sometimes not updating to input 

        $('.' + paginateInputClassName).val(iCurrentPage);

        // and this Line
        if (iPages <= 1) // hide paging when we can't page

Plugin Works Great thank you!!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the pagination code containing oSettings.aanFeatures.p, paginateInputClassName, and iCurrentPage. Check how the current-page value reaches the upper and lower displays, then verify that both inputs show the same page after pagination changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.