Use <th> in <thead> instead of <td>

Ref: #1308
This commit is contained in:
wolfy1339
2016-09-22 11:40:50 -04:00
parent ce79be8b0b
commit 00aadbaf91
10 changed files with 27 additions and 38 deletions

View File

@@ -25,8 +25,8 @@
<table class="data">
<thead>
<tr>
<td></td>
<td>Key</td>
<th></th>
<th>Key</th>
</tr>
</thead>
<tbody>

View File

@@ -4,9 +4,9 @@
<table class="data">
<thead>
<tr>
<td>User</td>
<td>Last Seen</td>
<td>Info</td>
<th>User</th>
<th>Last Seen</th>
<th>Info</th>
<? IF WebAdminLoaded ?><td>Action</td><? ENDIF ?>
</tr>
</thead>

View File

@@ -3,14 +3,14 @@
<table class="data">
<thead>
<tr>
<td>Name</td>
<td>Created</td>
<td>State</td>
<td>SSL</td>
<td>Local</td>
<td>Remote</td>
<td>Data In</td>
<td>Data Out</td>
<th>Name</th>
<th>Created</th>
<th>State</th>
<th>SSL</th>
<th>Local</th>
<th>Remote</th>
<th>Data In</th>
<th>Data Out</th>
</tr>
</thead>
<tbody>

View File

@@ -29,9 +29,9 @@
<table class="data">
<thead>
<tr>
<td style="width: 10px;"></td>
<td>Key</td>
<td>Note</td>
<th style="width: 10px;"></th>
<th>Key</th>
<th>Note</th>
</tr>
</thead>
<tbody>

View File

@@ -38,8 +38,8 @@
<table class="data">
<thead>
<tr>
<td>Name</td>
<td>Description</td>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>

View File

@@ -5,8 +5,8 @@
<table class="data">
<thead>
<tr>
<td>Name</td>
<td>Sticky</td>
<th>Name</th>
<th>Sticky</th>
</tr>
</thead>
<tbody>

View File

@@ -13,7 +13,7 @@ function floodprotection_change() {
function make_sortable_table(table) {
if (table.rows.length >= 1) { // Ensure that the table at least contains a row for the headings
var headings = table.rows[0].getElementsByTagName("td");
var headings = table.rows[0].getElementsByTagName("th");
for (var i = 0; i < headings.length; i++) {
// This function acts to scope the i variable, so we can pass it off
// as the column_index, otherwise column_index would just be the max