-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into #431/EditIpAndDns
- Loading branch information
Showing
18 changed files
with
273 additions
and
366 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,19 @@ | ||
function filter_table(input_id, table_id, doc) { | ||
// Declare variables | ||
var input, filter, table, tr, td, i, j, txtValue; | ||
input = doc.getElementById(input_id); | ||
filter = input.value.toUpperCase(); | ||
table = doc.getElementById(table_id); | ||
tr = table.getElementsByTagName("tr"); | ||
let input = doc.getElementById(input_id); | ||
let filters = input.value.toUpperCase().split(/[ ,]+/); | ||
let table = doc.getElementById(table_id); | ||
let tableBody = table.getElementsByTagName("tbody")[0]; | ||
let tr = tableBody.getElementsByTagName("tr"); | ||
|
||
// Loop through all table rows, and hide those who don't match the search query | ||
for (i = 0; i < tr.length; i++) { | ||
td = tr[i].getElementsByTagName("td"); | ||
for (j = 0; j < td.length; j++) { | ||
txtValue = td[j].textContent || td[j].innerText; | ||
if (txtValue.toUpperCase().indexOf(filter) > -1) { | ||
tr[i].style.display = ""; | ||
break; | ||
} | ||
tr[i].style.display = "none"; | ||
for (let rowIndex = 0; rowIndex < tr.length; rowIndex++) { | ||
let td = tr[rowIndex].getElementsByTagName("td"); | ||
let remainingFilters = filters; | ||
for (let columnIndex = 0; columnIndex < td.length; columnIndex++) { | ||
let column = td[columnIndex]; | ||
let txtValue = (column.dataset && column.dataset.filterValue) || column.textContent || column.innerText; | ||
remainingFilters = remainingFilters.filter((filter) => txtValue.toUpperCase().indexOf(filter) < 0); | ||
} | ||
tr[rowIndex].style.display = remainingFilters.length > 0 ? "none" : ""; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
function sortWithoutHTML(a, b) { | ||
function stripHTML(html) { | ||
let tmp = document.createElement("DIV"); | ||
tmp.innerHTML = html; | ||
return tmp.textContent || tmp.innerText || ""; | ||
} | ||
return stripHTML(a).localeCompare(stripHTML(b)) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
$primary: #0C415F; | ||
$danger: #a80833; | ||
$success: #d7e76f; | ||
$primary-active: #1f6993; | ||
$primary-hover: #1a5b82; | ||
|
||
@import "bootstrap"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
@import "custom_bootstrap"; | ||
|
||
$placeholder-color: Silver; | ||
|
||
.filter-box::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */ | ||
color: $placeholder-color; | ||
opacity: 1; /* Firefox */ | ||
} | ||
|
||
.filter-box:-ms-input-placeholder { /* Internet Explorer 10-11 */ | ||
color: $placeholder-color; | ||
} | ||
|
||
.filter-box::-ms-input-placeholder { /* Microsoft Edge */ | ||
color: $placeholder-color; | ||
} | ||
|
||
.filter-box { | ||
padding: 0.3rem 0.5rem; | ||
width: 20%; | ||
|
||
@extend .mb-3; | ||
@extend .bg-secondary; | ||
@extend .border-0; | ||
@extend .rounded; | ||
@extend .text-white; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
@import "custom_bootstrap"; | ||
|
||
th{ | ||
@extend .text-white; | ||
@extend .bg-primary; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.