This commit is contained in:
Dannon Baker
2014-12-15 09:39:55 -05:00
parent 55379f2de7
commit 6ceed69ce9
3 changed files with 9 additions and 1 deletions
+4
View File
@@ -176,6 +176,10 @@ var TabularDatasetChunkedView = Backbone.View.extend({
header_row = $('<tr/>').css('background-color', this.header_color).appendTo(data_table);
if (column_names) {
header_row.append('<th>' + column_names.join('</th><th>') + '</th>');
} else {
for (var j = 1; j <= this.model.get_metadata('columns'); j++) {
header_row.append('<th>' + j + '</th>');
}
}
// Render first chunk.
+4
View File
@@ -176,6 +176,10 @@ var TabularDatasetChunkedView = Backbone.View.extend({
header_row = $('<tr/>').css('background-color', this.header_color).appendTo(data_table);
if (column_names) {
header_row.append('<th>' + column_names.join('</th><th>') + '</th>');
} else {
for (var j = 1; j <= this.model.get_metadata('columns'); j++) {
header_row.append('<th>' + j + '</th>');
}
}
// Render first chunk.
File diff suppressed because one or more lines are too long