Patching our patch

This commit is contained in:
Will Marshall
2014-03-26 17:17:46 +11:00
parent 007428b6dc
commit a89de9a80f
3 changed files with 18 additions and 13 deletions

View File

@@ -1,3 +1,3 @@
window.SidebarCtrl = Darkswarm.controller "SidebarCtrl", ($scope, $location) ->
$scope.active = ->
$location.path() == "/login" || $location.path() == "/signup"
$location.path() in ["/login", "/signup"]