From 5c58883b614c1c4e4a0d33b61a1e54b96fc1140f Mon Sep 17 00:00:00 2001 From: Amos Haviv Date: Tue, 27 Aug 2013 12:39:49 +0300 Subject: [PATCH] Nodemon Heroku Support --- Procfile | 2 +- public/js/controllers/header.js | 6 ++++++ public/views/header.html | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Procfile b/Procfile index 3360097a4d..1dd2d7b217 100755 --- a/Procfile +++ b/Procfile @@ -1 +1 @@ -web: ./node_modules/.bin/forever -m 5 server.js +web: ./node_modules/.bin/nodemon server.js diff --git a/public/js/controllers/header.js b/public/js/controllers/header.js index c26d48f6e4..19df8c6f4a 100644 --- a/public/js/controllers/header.js +++ b/public/js/controllers/header.js @@ -11,4 +11,10 @@ function HeaderController($scope, $location, Global) { $scope.init = function() { }; + + $scope.isSelected = function(item) { + if ($location.path() == "/"+item.link) { + return "active" + } else return "" + } } \ No newline at end of file diff --git a/public/views/header.html b/public/views/header.html index 649f8f498c..7ef238e55a 100644 --- a/public/views/header.html +++ b/public/views/header.html @@ -1,7 +1,7 @@