mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 20:55:28 +00:00
Depend display of group assigmnent delect field on number of visible columns.
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -131,7 +131,7 @@ function initTable() {
|
||||
$("#comment", row).on("change", editDomain);
|
||||
|
||||
// Show group assignment field only if in full domain management mode
|
||||
if (showtype === "all") {
|
||||
if (table.column(5).visible()) {
|
||||
$("td:eq(4)", row).empty();
|
||||
$("td:eq(4)", row).append('<select id="multiselect" multiple="multiple"></select>');
|
||||
var sel = $("#multiselect", row);
|
||||
@@ -169,7 +169,7 @@ function initTable() {
|
||||
'">' +
|
||||
'<span class="glyphicon glyphicon-trash"></span>' +
|
||||
"</button>";
|
||||
if (showtype === "all") {
|
||||
if (table.column(5).visible()) {
|
||||
$("td:eq(5)", row).html(button);
|
||||
} else {
|
||||
$("td:eq(4)", row).html(button);
|
||||
|
||||
Reference in New Issue
Block a user