Skip to content

Commit

Permalink
ecfd9852bfec0484fc82e71cca44d9c75e504c77 Fix: Processing indicator di…
Browse files Browse the repository at this point in the history
…d not stay on while drawing when clicking to sort with server-side processing

https://datatables.net/forums/discussion/79498

d2447ae22e12004d9735af971e1425151f4388c5 Merge branch 'master' of github.com:DataTables/DataTablesSrc

Sync to source repo @d2447ae22e12004d9735af971e1425151f4388c5
  • Loading branch information
dtbuild committed Jul 30, 2024
1 parent 3a7898b commit ea8d706
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion datatables.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
],
"src-repo": "http://github.com/DataTables/DataTablesSrc",
"last-tag": "2.1.2",
"last-sync": "4d239c02420f0e9df78cae7c332e11ba88292b21"
"last-sync": "d2447ae22e12004d9735af971e1425151f4388c5"
}
5 changes: 5 additions & 0 deletions js/dataTables.js
Original file line number Diff line number Diff line change
Expand Up @@ -4969,6 +4969,11 @@
*/
function _fnProcessingDisplay ( settings, show )
{
// Ignore cases when we are still redrawing
if (settings.bDrawing && show === false) {
return;
}

_fnCallbackFire( settings, null, 'processing', [settings, show] );
}

Expand Down
2 changes: 1 addition & 1 deletion js/dataTables.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/dataTables.min.mjs

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions js/dataTables.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4916,6 +4916,11 @@ function _processingHtml ( settings )
*/
function _fnProcessingDisplay ( settings, show )
{
// Ignore cases when we are still redrawing
if (settings.bDrawing && show === false) {
return;
}

_fnCallbackFire( settings, null, 'processing', [settings, show] );
}

Expand Down

0 comments on commit ea8d706

Please sign in to comment.