From 4893c2dd5b226c0c590e45f56c9a3f19dce54648 Mon Sep 17 00:00:00 2001 From: Rsl1122 Date: Thu, 26 Sep 2019 11:25:07 +0300 Subject: [PATCH] Changed player-table error display --- Plan/common/src/main/resources/assets/plan/web/players.html | 5 +---- Plan/common/src/main/resources/assets/plan/web/server.html | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/Plan/common/src/main/resources/assets/plan/web/players.html b/Plan/common/src/main/resources/assets/plan/web/players.html index b901bc947..06db87740 100644 --- a/Plan/common/src/main/resources/assets/plan/web/players.html +++ b/Plan/common/src/main/resources/assets/plan/web/players.html @@ -288,10 +288,7 @@ order: [[5, "desc"]] }) } else if (error) { - $('.player-table').DataTable({ - columns: [{title: "Error"}], - data: [["Failed to load Players table data: " + error]] - }) + $('.player-table').text("Failed to load Players table data: " + error); } }); } catch (loadingError) { diff --git a/Plan/common/src/main/resources/assets/plan/web/server.html b/Plan/common/src/main/resources/assets/plan/web/server.html index 4f73404a3..bc01af597 100644 --- a/Plan/common/src/main/resources/assets/plan/web/server.html +++ b/Plan/common/src/main/resources/assets/plan/web/server.html @@ -1587,10 +1587,7 @@ order: [[5, "desc"]] }) } else if (error) { - $('.player-table').DataTable({ - columns: [{title: "Error"}], - data: [["Failed to load Players table data: " + error]] - }) + $('.player-table').text("Failed to load Players table data: " + error); } }); jsonRequest("../v1/kills?server=${serverName}", loadPlayerKills);