mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-08-20 03:32:46 +02: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);
|
this.values.add(values);
|
||||||
}
|
}
|
||||||
|
|
||||||
public final String parseHtml() {
|
public String parseHtml() {
|
||||||
return getTableHeader() +
|
return getTableHeader() +
|
||||||
parseHeader() +
|
parseHeader() +
|
||||||
parseBody() +
|
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) {
|
private static String[] getHeaders(Set<String> columnNames) {
|
||||||
List<String> header = new ArrayList<>(columnNames);
|
List<String> header = new ArrayList<>(columnNames);
|
||||||
Collections.sort(header);
|
Collections.sort(header);
|
||||||
|
|
|
@ -291,7 +291,8 @@
|
||||||
$(function () {
|
$(function () {
|
||||||
|
|
||||||
$('.player-table').DataTable({
|
$('.player-table').DataTable({
|
||||||
responsive: true
|
responsive: true,
|
||||||
|
"order": [[5, "desc"]]
|
||||||
});
|
});
|
||||||
|
|
||||||
var navButtons = document.getElementsByClassName("nav-button");
|
var navButtons = document.getElementsByClassName("nav-button");
|
||||||
|
|
|
@ -1422,6 +1422,10 @@
|
||||||
$(function () {
|
$(function () {
|
||||||
|
|
||||||
$('.player-table').DataTable({
|
$('.player-table').DataTable({
|
||||||
|
responsive: true,
|
||||||
|
"order": [[5, "desc"]]
|
||||||
|
});
|
||||||
|
$('.player-plugin-table').DataTable({
|
||||||
responsive: true
|
responsive: true
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user