Skip to content
Snippets Groups Projects
Commit 6e972913 authored by Tim van Dijen's avatar Tim van Dijen
Browse files

statistics: improve tabs

parent d6e03c44
No related branches found
No related tags found
No related merge requests found
...@@ -4,8 +4,18 @@ ...@@ -4,8 +4,18 @@
{% block preload %} {% block preload %}
<link href="{{ baseurlpath }}style.css" rel="stylesheet" /> <link href="{{ baseurlpath }}style.css" rel="stylesheet" />
{% endblock %} {% endblock %}
{% block postload %} {% block postload %}
<script src="{{ baseurlpath }}javascript.js"></script> <script type="text/javascript">
$(document).ready(function() {
$("#tabdiv").tabs();
$('ul.tabset_tabs li').click(
function() {
$("html, body").animate({ scrollTop: 0 }, "slow");
}
)
});
</script>
{% endblock %} {% endblock %}
{% block content %} {% block content %}
......
$(document).ready(function() {
$('ul.tabset_tabs li').click(
function() {
var tab_id = $(this).attr('data-tab');
$('ul.tabset_tabs li').removeClass('current');
$('.tabset_content').removeClass('current');
$(this).addClass('current');
$("#"+tab_id).addClass('current');
$("html, body").animate({ scrollTop: 0 }, "slow");
}
)
})
...@@ -130,7 +130,7 @@ $t->data['post_time'] = getBaseURL($t, 'post', 'time'); ...@@ -130,7 +130,7 @@ $t->data['post_time'] = getBaseURL($t, 'post', 'time');
$t->data['get_times_prev'] = getBaseURL($t, 'get', 'time', $t->data['available_times_prev']); $t->data['get_times_prev'] = getBaseURL($t, 'get', 'time', $t->data['available_times_prev']);
$t->data['get_times_next'] = getBaseURL($t, 'get', 'time', $t->data['available_times_next']); $t->data['get_times_next'] = getBaseURL($t, 'get', 'time', $t->data['available_times_next']);
//$t->data['jquery'] = array('ui' => true, 'core' => true); $t->data['jquery'] = array('core' => false, 'ui' => true, 'css' => true);
$t->show(); $t->show();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment