aboutsummaryrefslogtreecommitdiffstats
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
parentee8a13c48a71cf4fb4770e48ac717386181ea3c0 (diff)
downloadneko-96345f2f23fa0ad42b181dd9d33b510532a77852.tar.gz
neko-96345f2f23fa0ad42b181dd9d33b510532a77852.tar.bz2
neko-96345f2f23fa0ad42b181dd9d33b510532a77852.zip
proper bolding when selected for feeds and tags
-rw-r--r--static/style.css1
-rw-r--r--static/ui.html7
-rw-r--r--static/ui.js9
3 files changed, 13 insertions, 4 deletions
diff --git a/static/style.css b/static/style.css
index a91915a..b7ad1e9 100644
--- a/static/style.css
+++ b/static/style.css
@@ -128,7 +128,6 @@ h3 {
}
#tags li, #feeds li {
- font-weight: bold;
font-size: .75em;
}
diff --git a/static/ui.html b/static/ui.html
index 8604e43..8071364 100644
--- a/static/ui.html
+++ b/static/ui.html
@@ -57,12 +57,13 @@
</script>
<script id="tag_template" type="text/jqtmp">
- {{if tag.selected}}[{{/if}}
+ {{if tag.selected}}<b>{{/if}}
${tag.title}
- {{if tag.selected}}]{{/if}}
+ {{if tag.selected}}</b>{{/if}}
</script>
<script id="feed_template" type="text/jqtmp">
+ {{if feed.selected}}<b>{{/if}}
<span class="txt">
{{if feed.title}}
${feed.title}
@@ -75,8 +76,8 @@
<i>${feed.category}</i>
{{/if}}
<span class="edit">[edit]</span>
-
<span class="delete">[x]</span>
+ {{if feed.selected}}</b>{{/if}}
</script>
<script id="controls_template" type="text/jqtmp">
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();
},