aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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();
},