#145 Change default active tab.
Merged 2 years ago by rbowen. Opened 2 years ago by rbowen.
centos/ rbowen/centos.org master  into  master

@@ -1,6 +1,6 @@ 

  <div>

      <ul class="nav nav-tabs">

-         <li class="nav-item"><a class="nav-link active" role="tab" data-toggle="tab" href="#tab-1">8 (2105)</a></li>

+         <li class="nav-item"><a class="nav-link active" role="tab" data-toggle="tab" href="#tab-1">8 (2111)</a></li>

          <li class="nav-item"><a class="nav-link" role="tab" data-toggle="tab" href="#tab-2">7 (2009)</a></li>

      </ul>

      <div class="tab-content">

@@ -1,12 +1,12 @@ 

  <div>

      <ul class="nav nav-tabs">

-         <li class="nav-item"><a class="nav-link" role="tab" data-toggle="tab" href="#tab-3">9</a></li>

-         <li class="nav-item"><a class="nav-link active" role="tab" data-toggle="tab" href="#tab-4">8</a></li>

+         <li class="nav-item"><a class="nav-link active" role="tab" data-toggle="tab" href="#tab-3">9</a></li>

+         <li class="nav-item"><a class="nav-link" role="tab" data-toggle="tab" href="#tab-4">8</a></li>

      </ul>

      <div class="tab-content">

  

          <!-- tab 1 -->

-         <div class="tab-pane" role="tabpanel" id="tab-3">

+         <div class="tab-pane active" role="tabpanel" id="tab-3">

              <div class="table-responsive table-borderless">

                  <table class="table table-striped table-bordered table-sm">

                      <thead>
@@ -42,7 +42,7 @@ 

          </div>

  

          <!-- tab 2 -->

-         <div class="tab-pane active" role="tabpanel" id="tab-4">

+         <div class="tab-pane" role="tabpanel" id="tab-4">

              <div class="table-responsive table-borderless">

                  <table class="table table-striped table-bordered table-sm">

                      <thead>

Fabian's recent change switched which tab was default, but not the tab contents. This fixes that.

Pull-Request has been merged by rbowen

2 years ago