Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

Commit

Permalink
PT-3872: Sometimes livetable's "Loading" animation disapears before t…
Browse files Browse the repository at this point in the history
…he data is actualy loaded

Fixed
  • Loading branch information
sdumitriu committed Nov 2, 2018
1 parent 4facf0d commit 84d22a2
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,10 @@ XWiki.widgets.LiveTable = Class.create({
{
method: 'get',
onComplete: function( transport ) {
if (transport.responseJSON && transport.responseJSON.reqNo < self.sendReqNo) {
// Results for a previous request, still waiting for the most recent request to complete
return;
}
// Let code know loading is finished
// 1. Named event (for code interested by that table only)
document.fire("xwiki:livetable:" + self.domNodeName + ":loadingComplete", {
Expand Down

0 comments on commit 84d22a2

Please sign in to comment.