mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Add default numerical column headers, per Björn's PR (slightly tweaked) https://bitbucket.org/galaxy/galaxy-central/pull-request/611/add-a-default-header-to-tabular-output/.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
Reference in New Issue
Block a user