From 8a86fa491efef391a143edc334f28ce73ee0c67d Mon Sep 17 00:00:00 2001 From: FreddleSpl0it Date: Fri, 20 May 2022 12:03:12 +0200 Subject: [PATCH] [BS5] Replace FooTable with jquery Datatables --- data/web/js/site/mailbox.js | 36 ++++++++---------------------------- 1 file changed, 8 insertions(+), 28 deletions(-) diff --git a/data/web/js/site/mailbox.js b/data/web/js/site/mailbox.js index 92e90753..684fb8fd 100644 --- a/data/web/js/site/mailbox.js +++ b/data/web/js/site/mailbox.js @@ -337,17 +337,7 @@ jQuery(function($){ }, { title: lang.action, - data: null, - render: function (data, type) { - return `
- - Bearbeiten - - - Entfernen - -
`; - } + data: 'action' }, ] }); @@ -522,17 +512,7 @@ jQuery(function($){ }, { title: lang.action, - data: null, - render: function (data, type) { - return `
- - Bearbeiten - - - Entfernen - -
`; - } + data: 'action' }, ] }); @@ -603,7 +583,7 @@ jQuery(function($){ title: lang.active, data: 'active', render: function (data, type) { - return 1==value?'':(0==value?'':2==value&&'—'); + return 1==data?'':(0==data?'':2==data&&'—'); } }, { @@ -678,7 +658,7 @@ jQuery(function($){ title: lang.active, data: 'active', render: function (data, type) { - return 1==value?'':(0==value?'':2==value&&'—'); + return 1==data?'':(0==data?'':2==data&&'—'); } }, { @@ -819,7 +799,7 @@ jQuery(function($){ title: lang.active, data: 'active', render: function (data, type) { - return 1==value?'':0==value&&''; + return 1==data?'':0==data&&''; } }, { @@ -930,7 +910,7 @@ jQuery(function($){ title: lang.active, data: 'active', render: function (data, type) { - return 1==value?'':0==value&&''; + return 1==data?'':0==data&&''; } }, { @@ -1004,7 +984,7 @@ jQuery(function($){ title: lang.active, data: 'active', render: function (data, type) { - return 1==value?'':0==value&&''; + return 1==data?'':0==data&&''; } }, { @@ -1112,7 +1092,7 @@ jQuery(function($){ title: lang.active, data: 'active', render: function (data, type) { - return 1==value?'':0==value&&''; + return 1==data?'':0==data&&''; } }, {