mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-07 03:01:33 +00:00
Working sliding panel in basic form
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
window.SidebarCtrl = Darkswarm.controller "SidebarCtrl", ($scope, $location) ->
|
||||
$scope.active_sidebar = $location.path()
|
||||
|
||||
$scope.$watch ->
|
||||
$location.path()
|
||||
, ->
|
||||
$scope.active_sidebar = $location.path()
|
||||
|
||||
|
||||
$scope.visible = ->
|
||||
$scope.active_sidebar != null and $scope.active_sidebar != ""
|
||||
$scope.active = ->
|
||||
return "active" if $scope.active_sidbar != null and $scope.active_sidebar != ""
|
||||
|
||||
Reference in New Issue
Block a user