summaryrefslogtreecommitdiffstats
path: root/js/controller
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-06-26 12:22:27 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-06-26 12:22:27 +0200
commit831893647be2b4bc0e118148ac23c1144c83de0b (patch)
tree2fb0cd6ebd288959ac292a7c13f2290b7bb67162 /js/controller
parent501e29f71c5d863879eb67ed311549ee46e5a04b (diff)
fix js unit tests
Diffstat (limited to 'js/controller')
-rw-r--r--js/controller/NavigationController.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/js/controller/NavigationController.js b/js/controller/NavigationController.js
index 25fa6ddd1..a848a4b39 100644
--- a/js/controller/NavigationController.js
+++ b/js/controller/NavigationController.js
@@ -98,15 +98,17 @@ function ($route, FEED_TYPE, FeedResource, FolderResource, ItemResource,
};
this.isFolderActive = (folderId) => {
+ let currentId = parseInt($route.current.params.id, 10);
return $route.current &&
$route.current.$$route.type === FEED_TYPE.FOLDER &&
- $route.current.params.id === folderId + '';
+ currentId === folderId;
};
this.isFeedActive = (feedId) => {
+ let currentId = parseInt($route.current.params.id, 10);
return $route.current &&
$route.current.$$route.type === FEED_TYPE.FEED &&
- $route.current.params.id === feedId + '';
+ currentId === feedId;
};
// TBD