reload charts on firefox when tabs are switched

This commit is contained in:
Lee Lawlor
2014-04-14 20:52:56 -04:00
parent f317d06653
commit 484959298c
5 changed files with 36 additions and 8 deletions

View File

@ -100,13 +100,14 @@ $(function () {
else {
$("#watchText").text("Watch");
}
$("#maincontent").tabs( {
select: function( e, ui)
{
$.cookie('stickyTab', ui.index );
}
}
);
$("#maincontent").tabs({
select: function( e, ui) {
$.cookie('stickyTab', ui.index );
},
activate: function( event, ui ) {
reloadCharts();
}
});
stickyTab = $.cookie( 'stickyTab' );
anchor = window.location.hash;