mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-02-25 08:41:38 +01:00
Fixed players table order #622
This commit is contained in:
parent
2161e26a3f
commit
23e555ad1a
@ -52,7 +52,7 @@ public class TableContainer {
|
||||
this.values.add(values);
|
||||
}
|
||||
|
||||
public final String parseHtml() {
|
||||
public String parseHtml() {
|
||||
return getTableHeader() +
|
||||
parseHeader() +
|
||||
parseBody() +
|
||||
|
@ -42,6 +42,11 @@ public class PluginPlayersTable extends TableContainer {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String parseHtml() {
|
||||
return super.parseHtml().replace("player-table", "player-plugin-table");
|
||||
}
|
||||
|
||||
private static String[] getHeaders(Set<String> columnNames) {
|
||||
List<String> header = new ArrayList<>(columnNames);
|
||||
Collections.sort(header);
|
||||
|
@ -291,7 +291,8 @@
|
||||
$(function () {
|
||||
|
||||
$('.player-table').DataTable({
|
||||
responsive: true
|
||||
responsive: true,
|
||||
"order": [[5, "desc"]]
|
||||
});
|
||||
|
||||
var navButtons = document.getElementsByClassName("nav-button");
|
||||
|
@ -1422,6 +1422,10 @@
|
||||
$(function () {
|
||||
|
||||
$('.player-table').DataTable({
|
||||
responsive: true,
|
||||
"order": [[5, "desc"]]
|
||||
});
|
||||
$('.player-plugin-table').DataTable({
|
||||
responsive: true
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user