aboutsummaryrefslogtreecommitdiffstats
path: root/static/ui.js
diff options
context:
space:
mode:
authorAdam Mathes <adam@trenchant.org>2018-04-22 18:59:05 -0700
committerAdam Mathes <adam@trenchant.org>2018-04-22 18:59:05 -0700
commit96345f2f23fa0ad42b181dd9d33b510532a77852 (patch)
treef3109bf3c92904c0e6863547f001d64347662c08 /static/ui.js
parentee8a13c48a71cf4fb4770e48ac717386181ea3c0 (diff)
downloadneko-96345f2f23fa0ad42b181dd9d33b510532a77852.tar.gz
neko-96345f2f23fa0ad42b181dd9d33b510532a77852.tar.bz2
neko-96345f2f23fa0ad42b181dd9d33b510532a77852.zip
proper bolding when selected for feeds and tags
Diffstat (limited to 'static/ui.js')
-rw-r--r--static/ui.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/static/ui.js b/static/ui.js
index 82288d1..f89f4bf 100644
--- a/static/ui.js
+++ b/static/ui.js
@@ -28,6 +28,15 @@ var AppModel = Backbone.Model.extend({
filterToFeed: function(feed) {
this.set('feedFilter', feed);
+ if (feed.get('selected')) {
+ feed.set('selected', false);
+ }
+ else {
+ App.feeds.models.forEach ( function (f) {
+ f.set('selected', false);
+ });
+ feed.set('selected', true);
+ }
this.items.reboot();
},