Merge pull request #377 from Lukx/master

Network Graph: AjaxLoader & Error Handling for no-more-entries
This commit is contained in:
Klaus Silveira
2013-09-17 06:54:37 -07:00
3 changed files with 14 additions and 1 deletions

View File

@@ -55,6 +55,7 @@ class NetworkController implements ControllerProviderInterface
}
$nextPageUrl = null;
if ($pager['last'] !== $pager['current']) {
$nextPageUrl = $app['url_generator']->generate(
'networkData',
@@ -65,6 +66,18 @@ class NetworkController implements ControllerProviderInterface
)
);
}
// when no commits are given, return an empty response - issue #369
if( count($commits) === 0 ) {
return $app->json( array(
'repo' => $repo,
'commitishPath' => $commitishPath,
'nextPage' => null,
'start' => null,
'commits' => $jsonFormattedCommits
), 200
);
}
return $app->json( array(
'repo' => $repo,

BIN
web/img/ajax-loader.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View File

@@ -351,7 +351,7 @@
}
function handleNoAvailableData() {
console.log('No Data available');
window.console && console.log('No (more) Data available');
}
var awaitedParents = {};