aboutsummaryrefslogtreecommitdiffstats
path: root/static
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2015-03-28 17:00:11 -0400
committerGuillaume Horel <guillaume.horel@gmail.com>2015-03-28 17:00:11 -0400
commit34e086b350613ec43de3a19f9fd617464e49c635 (patch)
tree7c523df76f97ad9f91557c74613670209f552abd /static
parent6dede725fce32d3fcc8f1dcdb730e2ef94f2ba3a (diff)
downloadfamille-flask-34e086b350613ec43de3a19f9fd617464e49c635.tar.gz
update active tab
Diffstat (limited to 'static')
-rw-r--r--static/famille.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/static/famille.js b/static/famille.js
index 491fb3c..b460392 100644
--- a/static/famille.js
+++ b/static/famille.js
@@ -20,7 +20,9 @@ $(document).ready(function(){
$(".tohide").hide(0);
});
$("#kadobutton").click(function(){
- $(".kadoscope").animate({opacity:"1"},"5000");
+ $(".kadoscope").animate({opacity:"1"},"5000");
});
$('span.timeago').timeago();
+ var addr = $(location).attr('pathname');
+ $("#"+addr.replace(/\//g,"")).addClass("active")
});