[UPDATE] auto activate first tab
This commit is contained in:
parent
b0d9e1acd2
commit
52a96b2ebb
@ -1,6 +1,11 @@
|
|||||||
<script>
|
<script>
|
||||||
$(function () {
|
$(function () {
|
||||||
|
|
||||||
|
// needed for automatic activation of first tab
|
||||||
|
$(function () {
|
||||||
|
$('#hashrategraph a:first').tab('show')
|
||||||
|
})
|
||||||
|
|
||||||
// You can't draw here chart directly, because it's on hidden tab, instead let's do the workaround
|
// You can't draw here chart directly, because it's on hidden tab, instead let's do the workaround
|
||||||
$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
|
$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
|
||||||
// this ain't pretty, but you should get the idea
|
// this ain't pretty, but you should get the idea
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user