summaryrefslogtreecommitdiffstats
path: root/js/public
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-03-26 18:27:30 +0100
committerBernhard Posselt <nukeawhale@gmail.com>2013-03-26 18:27:30 +0100
commiteff408710b708a44cf3869599985fd8246c0400b (patch)
treeb276ae04f8c1c8bd2b336d7ac925abe4d621dab5 /js/public
parenta5cb76f49169a360c9c08d617f93b549a1ba62f0 (diff)
fixed setting of active feed
Diffstat (limited to 'js/public')
-rw-r--r--js/public/app.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/public/app.js b/js/public/app.js
index 6a110adc7..eade23a4e 100644
--- a/js/public/app.js
+++ b/js/public/app.js
@@ -209,6 +209,8 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
this.$scope.folders = this._folderModel.getAll();
this.$scope.feedType = this._feedType;
this.$scope.isFeedActive = function(type, id) {
+ console.log(type + ' ' + id);
+ console.log(_this.isFeedActive(type, id));
return _this.isFeedActive(type, id);
};
this.$scope.isShown = function(type, id) {
@@ -314,7 +316,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
};
FeedController.prototype.isFeedActive = function(type, id) {
- return type === this._active.getType() && (id = this._active.getId());
+ return type === this._active.getType() && id === this._active.getId();
};
FeedController.prototype.isShown = function(type, id) {