From 79d2ccc94700291c7fb35b40078b1f849b9b6252 Mon Sep 17 00:00:00 2001 From: Sicco van Sas Date: Fri, 3 Aug 2018 17:07:20 +0200 Subject: [PATCH] Fix broken update on changing input box value The table would not update if you changed the page value in the input box, i.e. if the input box showed page 1 and you changed it to page 5, nothing would happen whereas you would expect page 5 to be loaded into your table. `fnExtStylePagingInfo` is used in 3 other places in this file, so I guessed that the usage of `fnPagingInfo` in the `nPageNumBox.change` block was a typo and should have been `fnExtStylePagingInfo`. This indeed fixes the problem. --- pagination/extjs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pagination/extjs.js b/pagination/extjs.js index 60634881..ca9e96f1 100644 --- a/pagination/extjs.js +++ b/pagination/extjs.js @@ -86,7 +86,7 @@ $.fn.dataTableExt.oPagination.extStyle = { nPageNumBox.change(function () { var pageValue = parseInt($(this).val(), 10) - 1 ; // -1 because pages are 0 indexed, but the UI is 1 - var oPaging = oSettings.oInstance.fnPagingInfo(); + var oPaging = oSettings.oInstance.fnExtStylePagingInfo(); if(pageValue === NaN || pageValue<0 ){ pageValue = 0;