mirror of
https://github.com/wassname/side-by-side.git
synced 2026-09-09 11:34:24 +08:00
Don't scrollspy when loading
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -2,6 +2,7 @@ angular.module("sideBySide").service "poems", ['fetch', (fetch) ->
|
||||
@all = [{
|
||||
meta: {
|
||||
Active: true
|
||||
Loading: true
|
||||
}
|
||||
content: [{
|
||||
section: 'Loading...'
|
||||
|
||||
Reference in New Issue
Block a user