mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-21 05:50:18 +08:00
Performance tabs now stay the same on refresh #372
This commit is contained in:
parent
03c2d51475
commit
91398d86d0
@ -462,7 +462,14 @@
|
||||
</script>
|
||||
<script>
|
||||
$( function() {
|
||||
$( "#tabs" ).tabs();
|
||||
var resourceTab = window.sessionStorage.getItem("AnalysisResourceTab");
|
||||
if (resourceTab == null) {
|
||||
resourceTab = 1;
|
||||
}
|
||||
$( "#tabs" ).tabs({active: resourceTab});
|
||||
$( "#tabs" ).on("tabsactivate", function(event, ui) {
|
||||
window.sessionStorage.setItem("AnalysisResourceTab", $( "#tabs" ).tabs( "option", "active" ));
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script>
|
||||
|
Loading…
Reference in New Issue
Block a user