Skip to content

Commit 7aba213

Browse files
committed
Fixed an error on FireFox with the tab selection for Graph section
1 parent 6e5d242 commit 7aba213

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ <h4><a href="https://github.com/Kidel/Netkit-Lab-Generator" target="_blank">http
4545
<div class="col-xs-1">
4646
<!-- Nav tabs -->
4747
<ul class="nav nav-tabs tabs-left">
48-
<li id="tab-home" class="tab-label active"><a href="#home" data-toggle="tab" onclick="toggle_tab(this)">Home</a></li>
49-
<li id="tab-graph" class="tab-label"><a href="#graph" data-toggle="tab" onclick="toggle_tab(this)">Graph</a></li>
48+
<li id="tab-home" class="tab-label active"><a href="#home" data-toggle="tab" onclick="toggle_tab(event, this)">Home</a></li>
49+
<li id="tab-graph" class="tab-label"><a href="#graph" data-toggle="tab" onclick="toggle_tab(event, this)">Graph</a></li>
5050
</ul>
5151
</div>
5252
<div class="col-xs-10">

js/page.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function toggle_tab(elem) {
1+
function toggle_tab(event, elem) {
22
event.preventDefault();
33
var elems = document.getElementsByClassName("tab-pane");
44
for(var j in elems) {

0 commit comments

Comments
 (0)