Revert "Remove duplicated code as it is already part of utils.stateLoadCallback"

This reverts commit 395b1b6c1f.

Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
Christian König
2021-11-14 22:38:18 +01:00
parent d141708b7e
commit 78aace3403
5 changed files with 24 additions and 0 deletions
+5
View File
@@ -306,6 +306,11 @@ function initTable() {
stateLoadCallback: function () {
var data = utils.stateLoadCallback("groups-adlists-table");
// Return if not available
if (data === null) {
return null;
}
// Reset visibility of ID column
data.columns[0].visible = false;
// Apply loaded state to table
+5
View File
@@ -230,6 +230,11 @@ function initTable() {
stateLoadCallback: function () {
var data = utils.stateLoadCallback("groups-clients-table");
// Return if not available
if (data === null) {
return null;
}
// Reset visibility of ID column
data.columns[0].visible = false;
// Apply loaded state to table
+5
View File
@@ -259,6 +259,11 @@ function initTable() {
stateLoadCallback: function () {
var data = utils.stateLoadCallback("groups-domains-table");
// Return if not available
if (data === null) {
return null;
}
// Reset visibility of ID column
data.columns[0].visible = false;
// Show group assignment column only on full page
+5
View File
@@ -99,6 +99,11 @@ $(function () {
stateLoadCallback: function () {
var data = utils.stateLoadCallback("groups-table");
// Return if not available
if (data === null) {
return null;
}
// Reset visibility of ID column
data.columns[0].visible = false;
// Apply loaded state to table
+4
View File
@@ -156,6 +156,10 @@ $(function () {
},
stateLoadCallback: function () {
var data = utils.stateLoadCallback("messages-table");
// Return if not available
if (data === null) {
return null;
}
// Reset visibility of ID and blob columns
var hiddenCols = [0, 4, 5, 6, 7, 8];