fsd
This commit is contained in:
parent
ae016978ed
commit
c87e1a7b51
4 changed files with 9 additions and 13 deletions
|
@ -7,16 +7,12 @@ function sort_table(n) {
|
|||
rows = table.rows;
|
||||
for (i = 1; i < (rows.length - 1); i++) {
|
||||
shouldSwitch = false;
|
||||
x = rows[i].getElementsByTagName("TD")[n];
|
||||
y = rows[i + 1].getElementsByTagName("TD")[n];
|
||||
const x_child = x.getElementsByTagName('a')
|
||||
if (x_child) {
|
||||
x = x_child[0]
|
||||
}
|
||||
const y_child = y.getElementsByTagName('a')
|
||||
if (y_child) {
|
||||
y = y_child[0]
|
||||
}
|
||||
let x = rows[i].getElementsByTagName("TD")[n];
|
||||
let y = rows[i + 1].getElementsByTagName("TD")[n];
|
||||
const x_child = x.getElementsByTagName('a')[0]
|
||||
if (typeof x_child != 'undefined') x = x_child
|
||||
const y_child = y.getElementsByTagName('a')[0]
|
||||
if (typeof y_child != 'undefined') y = y_child
|
||||
if (parseInt(x.innerHTML) < parseInt(y.innerHTML)) {
|
||||
shouldSwitch = true;
|
||||
break;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
{% block content %}
|
||||
|
||||
<script src="/assets/js/sort_table.js?v=241"></script>
|
||||
<script src="/assets/js/sort_table.js?v=242"></script>
|
||||
|
||||
<pre class="d-none d-md-inline-block"></pre>
|
||||
<h5 style="font-weight:bold;">Admins</h5>
|
||||
|
|
|
@ -254,7 +254,7 @@
|
|||
<div class="d-none" id="pusherid">{{PUSHER_ID}}</div>
|
||||
<script src="/assets/js/pusher.js?v=242"></script>
|
||||
<script>
|
||||
if (typeof Android !== 'undefined') {
|
||||
if (typeof Android != 'undefined') {
|
||||
Android.Subscribe('{{request.host}}{{v.id}}');
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{% extends "default.html" %}
|
||||
{% block content %}
|
||||
<script src="/assets/js/sort_table.js?v=241"></script>
|
||||
<script src="/assets/js/sort_table.js?v=242"></script>
|
||||
|
||||
<pre>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue