Performance tabs now stay the same on refresh #372

This commit is contained in:
Rsl1122 2017-10-29 11:23:10 +02:00
parent 03c2d51475
commit 91398d86d0

View File

@ -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>