Don't scrollspy when loading

This commit is contained in:
Vit Brunner
2014-12-16 12:05:17 +01:00
parent 8ed614964c
commit 5d033dfa41
2 changed files with 4 additions and 2 deletions
+3 -2
View File
@@ -15,8 +15,9 @@ angular.module("sideBySide.controllers", [])
, 1
$rootScope.$on 'duScrollspy:becameActive', ($event, $element) ->
$location.hash($element.prop('id')).replace()
$rootScope.$apply()
if (not $scope.meta[0].Loading)
$location.hash($element.prop('id')).replace()
$rootScope.$apply()
$scope.$watchCollection () ->
poems.getActive()
+1
View File
@@ -2,6 +2,7 @@ angular.module("sideBySide").service "poems", ['fetch', (fetch) ->
@all = [{
meta: {
Active: true
Loading: true
}
content: [{
section: 'Loading...'