some fixes of entries, datatable html and git archive python code
This commit is contained in:
File diff suppressed because one or more lines are too long
@ -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>
|
@ -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!");
|
||||
}
|
||||
|
Reference in New Issue
Block a user