some fixes of entries, datatable html and git archive python code

This commit is contained in:
Trilarion
2018-06-11 09:44:45 +02:00
parent 8220365691
commit 81228e509b
19 changed files with 149 additions and 120 deletions

File diff suppressed because one or more lines are too long

View File

@ -11,13 +11,13 @@
<table class="table"></table>
</div>
<script>
var dataTable = new DataTable("table", {
perPage: 50,
perPageSelect: [20, 50, 100],
fixedHeigt: true,
ajax: "data.json",
footer: true
});
var dataTable = new DataTable("table", {
perPage: 50,
perPageSelect: [20, 50, 100],
fixedHeigt: true,
ajax: "data.json",
footer: true
});
</script>
</body>
</html>

View File

@ -2266,21 +2266,7 @@
// Valid JSON string
if (json) {
obj = {
headings: [],
data: []
};
each(json, function (data, i) {
obj.data[i] = [];
each(data, function (value, column) {
if (obj.headings.indexOf(column) < 0) {
obj.headings.push(column);
}
obj.data[i].push(value);
});
});
obj = json;
} else {
console.warn("That's not valid JSON!");
}