Minor tweaks

* use the background-color property instead of the background shorthand
* add multiple classes with one `addClass` call
* rename `underline` to `text-underline`
* use the CSS class `pointer` instead of adding CSS via JS
* change `border-color: transparent` to `border: 0` in the navbar right dropdown image
* add image dimensions in the dropdown donate image
* remove the obsolete and unneeded `center` element from network.php
* remove commented out PHP code from header.php
* fix wrong `form-control` class used in buttons

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
XhmikosR
2020-05-11 16:08:09 +03:00
parent c2f3baf25e
commit 8db0957a28
6 changed files with 29 additions and 47 deletions

View File

@@ -283,8 +283,7 @@ $(document).ready(function () {
new_tab.focus();
}
});
$("td:eq(4)", row).addClass("underline");
$("td:eq(4)", row).addClass("pointer");
$("td:eq(4)", row).addClass("text-underline pointer");
}
// Substitute domain by "." if empty
@@ -447,7 +446,7 @@ $(document).ready(function () {
this.style.color = "";
}
);
api.$("td:eq(1)").css("cursor", "pointer");
api.$("td:eq(1)").addClass("pointer");
// Domain
api.$("td:eq(2)").click(function () {
if (autofilter()) {
@@ -471,7 +470,7 @@ $(document).ready(function () {
this.style.color = "";
}
);
api.$("td:eq(2)").css("cursor", "pointer");
api.$("td:eq(2)").addClass("pointer");
// Client
api.$("td:eq(3)").click(function () {
if (autofilter()) {
@@ -493,7 +492,7 @@ $(document).ready(function () {
this.style.color = "";
}
);
api.$("td:eq(3)").css("cursor", "pointer");
api.$("td:eq(3)").addClass("pointer");
}
});