mirror of https://github.com/apache/lucene.git
SOLR-7732 Loader icon keeps spinning and is chopped in half
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1688156 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8c964253b5
commit
5d8668700f
|
@ -182,8 +182,10 @@ ul
|
|||
|
||||
.universal-loader {
|
||||
position: absolute;
|
||||
left: 0px;
|
||||
left: -16px;
|
||||
top: 0px;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
#wrapper
|
||||
|
|
|
@ -253,7 +253,6 @@ solrAdminApp.config([
|
|||
var activeRequests = 0;
|
||||
|
||||
var started = function(config) {
|
||||
console.log("start HTTP for " + config.url);
|
||||
if (activeRequests == 0) {
|
||||
$rootScope.$broadcast('loadingStatusActive');
|
||||
}
|
||||
|
@ -267,7 +266,6 @@ solrAdminApp.config([
|
|||
if (activeRequests == 0) {
|
||||
$rootScope.$broadcast('loadingStatusInactive');
|
||||
}
|
||||
console.log("ended");
|
||||
if ($rootScope.retryCount>0) {
|
||||
$rootScope.connectionRecovered = true;
|
||||
$rootScope.retryCount=0;
|
||||
|
@ -280,14 +278,13 @@ solrAdminApp.config([
|
|||
};
|
||||
|
||||
var failed = function(rejection) {
|
||||
if (rejection.config.params.doNotIntercept) {
|
||||
return rejection;
|
||||
}
|
||||
activeRequests--;
|
||||
if (activeRequests == 0) {
|
||||
$rootScope.$broadcast('loadingStatusInactive');
|
||||
}
|
||||
console.log("ERROR " + rejection.status + ": " + rejection.config.url);
|
||||
if (rejection.config.params.doNotIntercept) {
|
||||
return rejection;
|
||||
}
|
||||
if (rejection.status === 0) {
|
||||
$rootScope.$broadcast('connectionStatusActive');
|
||||
if (!$rootScope.retryCount) $rootScope.retryCount=0;
|
||||
|
|
Loading…
Reference in New Issue