aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/templates/layout.html
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-10-01 18:30:05 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-10-01 18:30:05 +0200
commitee287536fc351dedc69ef989f51ead6cc5b5b100 (patch)
treebe375c0f93d7049a5fb0021ec5e7c2f29d07ae86 /pyaggr3g470r/templates/layout.html
parentMinor UI improvements for the home page. (diff)
downloadnewspipe-ee287536fc351dedc69ef989f51ead6cc5b5b100.tar.gz
newspipe-ee287536fc351dedc69ef989f51ead6cc5b5b100.tar.bz2
newspipe-ee287536fc351dedc69ef989f51ead6cc5b5b100.zip
Do not wait for the complete document is loaded to run the js code.
Diffstat (limited to 'pyaggr3g470r/templates/layout.html')
-rw-r--r--pyaggr3g470r/templates/layout.html2
1 files changed, 0 insertions, 2 deletions
diff --git a/pyaggr3g470r/templates/layout.html b/pyaggr3g470r/templates/layout.html
index b9b4a4a0..da33568c 100644
--- a/pyaggr3g470r/templates/layout.html
+++ b/pyaggr3g470r/templates/layout.html
@@ -168,7 +168,6 @@ deployed on Heroku or on a traditional server." />
<script src="{{ url_for('.static', filename = 'js/bootstrap.js') }}"></script>
<script src="{{ url_for('.static', filename = 'js/articles.js') }}"></script>
<script type="text/javascript" class="source">
- $(document).ready(function() {
if (window.location.href.indexOf("filter_=all") > -1){
$("#tab-all").attr('class', "active");
}
@@ -181,7 +180,6 @@ deployed on Heroku or on a traditional server." />
else {
$("#tab-unread").attr('class', "active");
}
- });
</script>
</body>
</html>
bgstack15