aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/templates
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-10-01 08:45:02 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-10-01 08:45:02 +0200
commita36ae0e60c1821ad161ce595eaf361cc3ee79e4b (patch)
treebc91a3aebb786349c22316621fd58ea6bbfe076e /pyaggr3g470r/templates
parentImproved home page with tabs. (diff)
downloadnewspipe-a36ae0e60c1821ad161ce595eaf361cc3ee79e4b.tar.gz
newspipe-a36ae0e60c1821ad161ce595eaf361cc3ee79e4b.tar.bz2
newspipe-a36ae0e60c1821ad161ce595eaf361cc3ee79e4b.zip
fix...
Diffstat (limited to 'pyaggr3g470r/templates')
-rw-r--r--pyaggr3g470r/templates/layout.html7
1 files changed, 5 insertions, 2 deletions
diff --git a/pyaggr3g470r/templates/layout.html b/pyaggr3g470r/templates/layout.html
index b02bdf07..b12e0276 100644
--- a/pyaggr3g470r/templates/layout.html
+++ b/pyaggr3g470r/templates/layout.html
@@ -169,14 +169,17 @@ deployed on Heroku or on a traditional server." />
<script src="{{ url_for('.static', filename = 'js/articles.js') }}"></script>
<script type="text/javascript" class="source">
$(document).ready(function() {
- if (window.location.href.indexOf("unread") > -1) {
+ if (window.location.href.indexOf("all") > -1){
+ $("#tab-all").attr('class', "active");
+ }
+ else if (window.location.href.indexOf("unread") > -1) {
$("#tab-unread").attr('class', "active");
}
else if (window.location.href.indexOf("read") > -1) {
$("#tab-read").attr('class', "active");
}
else {
- $("#tab-all").attr('class', "active");
+ $("#tab-unread").attr('class', "active");
}
});
</script>
bgstack15