DataTables / DataTables/Plugins
current page does not update in both upper and lower pagination displays
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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