mirror of
https://github.com/wassname/side-by-side.git
synced 2026-09-22 13:40:40 +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()
|
||||
|
||||
Reference in New Issue
Block a user