fixed a problem where favorites list was displayed incorrectly

This commit is contained in:
denz
2017-02-09 15:02:27 +09:00
committed by HyoJong
parent 5275c4a72a
commit 652ff80518
2 changed files with 3 additions and 2 deletions
@@ -397,7 +397,7 @@
*/
parseApplicationList = function (data, cb) {
UserConfigService.getFavoriteList(function( aSavedFavoriteList ){
scope.favoriteCount = aSavedFavoriteList.length;
// scope.favoriteCount = aSavedFavoriteList.length;
scope.applications = [{
text: '',
value: ''
@@ -422,6 +422,7 @@
aGeneralList.push(oValue);
}
});
scope.favoriteCount = aFavoriteList.length;
scope.applications = aFavoriteList.concat( aGeneralList );
if (angular.isFunction(cb)) {
cb.apply(scope);
@@ -250,7 +250,7 @@
fetchStart = function ( bHasTransactionInfo ) {
var query = getQuery();
getTransactionList(query, function (data) {
if (data.metadata.length === 0 || true) {
if (data.metadata.length === 0) {
$scope.$emit('timeSliderDirective.disableMore');
$scope.$emit('timeSliderDirective.changeMoreToDone');
if ( fetchStartLoadTryCount < fetchStartLoadTryMaxCount ) {