mirror of
https://github.com/drakkan/sftpgo.git
synced 2024-11-22 07:30:25 +00:00
WebAdmin events page: set fixed sizes for potentially long fields
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
parent
613f2f1c24
commit
7831ddaede
2 changed files with 7 additions and 1 deletions
|
@ -518,6 +518,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
|
||||||
{
|
{
|
||||||
data: "virtual_path",
|
data: "virtual_path",
|
||||||
defaultContent: "",
|
defaultContent: "",
|
||||||
|
width: '20%',
|
||||||
render: function(data, type, row) {
|
render: function(data, type, row) {
|
||||||
if (type === 'display') {
|
if (type === 'display') {
|
||||||
if (!data){
|
if (!data){
|
||||||
|
@ -564,6 +565,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
|
||||||
{
|
{
|
||||||
data: "status",
|
data: "status",
|
||||||
defaultContent: "",
|
defaultContent: "",
|
||||||
|
width: '15%',
|
||||||
render: function(data, type, row) {
|
render: function(data, type, row) {
|
||||||
if (type === 'display') {
|
if (type === 'display') {
|
||||||
let info = "";
|
let info = "";
|
||||||
|
@ -927,6 +929,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
|
||||||
{
|
{
|
||||||
data: "message",
|
data: "message",
|
||||||
defaultContent: "",
|
defaultContent: "",
|
||||||
|
width: '25%',
|
||||||
render: function(data, type, row) {
|
render: function(data, type, row) {
|
||||||
if (type === 'display') {
|
if (type === 'display') {
|
||||||
if (data){
|
if (data){
|
||||||
|
|
|
@ -332,7 +332,10 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
|
||||||
visible: true,
|
visible: true,
|
||||||
render: function(data, type, row) {
|
render: function(data, type, row) {
|
||||||
if (type === 'display') {
|
if (type === 'display') {
|
||||||
return escapeHTML(data);
|
if (data){
|
||||||
|
return escapeHTML(data);
|
||||||
|
}
|
||||||
|
return ""
|
||||||
}
|
}
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue