File tree Expand file tree Collapse file tree 3 files changed +14
-9
lines changed
BlogEngine/BlogEngine.NET Expand file tree Collapse file tree 3 files changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,10 @@ public List<SelectOption> Get()
2828 if ( cnt > 2 ) break ;
2929 }
3030 }
31- catch ( Exception ) { }
31+ catch ( Exception ex )
32+ {
33+ BlogEngine . Core . Utils . Log ( "Dashboard news feed" , ex ) ;
34+ }
3235 return items ;
3336 }
3437}
Original file line number Diff line number Diff line change 142142 $scope . packages = [ ] ;
143143 angular . copy ( data , $scope . packages ) ;
144144 $scope . checkNewVersion ( ) ;
145- if ( $scope . packages . length > 0 ) {
146- $ ( '#tr-gal-spinner' ) . hide ( ) ;
147- }
148- else { $ ( '#div-gal-spinner' ) . html ( BlogAdmin . i18n . empty ) ; }
145+ $ ( '#gal-spinner' ) . hide ( ) ;
149146 } )
150147 . error ( function ( ) {
151148 toastr . error ( $rootScope . lbl . errorLoadingPackages ) ;
149+ $ ( '#gal-spinner' ) . hide ( ) ;
152150 } ) ;
153151 }
154152 $scope . loadNewsFeed = function ( ) {
155153 dataService . getItems ( '/api/newsfeed' , { take : 5 , skip : 0 } )
156154 . success ( function ( data ) {
157155 angular . copy ( data , $scope . news ) ;
156+ $ ( '#news-spinner' ) . hide ( ) ;
158157 } )
159158 . error ( function ( ) {
160159 toastr . error ( $rootScope . lbl . errorLoadingPackages ) ;
160+ $ ( '#news-spinner' ) . hide ( ) ;
161161 } ) ;
162162 }
163163 $scope . checkNewVersion = function ( ) {
Original file line number Diff line number Diff line change @@ -137,11 +137,10 @@ <h4 class="modal-title">{{lbl.trash}}</h4>
137137 < span class ="item-desc text-ellipsis "> {{pkg.Description}}</ span >
138138 </ a >
139139 </ li >
140- < li ng-if ="packages.length == 0 " class ="list-group-item item-spinner text-center ">
141- < div id ="tr-gal-spinner ">
142- < div id ="div-gal-spinner "> < i class ="fa fa-spinner fa-spin "> </ i > </ div >
143- </ div >
140+ < li id ="gal-spinner " class ="list-group-item text-center ">
141+ < i class ="fa fa-spinner fa-spin "> </ i >
144142 </ li >
143+ < li ng-if ="packages.length == 0 " class ="list-group-item item-empty "> {{lbl.empty}}</ li >
145144 </ ul >
146145 </ div >
147146 < div class ="panel panel-default dashboard-news dashboard-list ">
@@ -152,6 +151,9 @@ <h4 class="modal-title">{{lbl.trash}}</h4>
152151 < li class ="list-group-item " data-ng-repeat ="n in news ">
153152 < a href ="{{n.OptionValue}}.aspx " target ="_blank "> {{n.OptionName}}</ a >
154153 </ li >
154+ < li id ="news-spinner " class ="list-group-item text-center ">
155+ < i class ="fa fa-spinner fa-spin "> </ i >
156+ </ li >
155157 < li ng-if ="news.length == 0 " class ="list-group-item item-empty "> {{lbl.empty}}</ li >
156158 </ ul >
157159 </ div >
You can’t perform that action at this time.
0 commit comments