Skip to content

Commit

Permalink
Remove a little cruft in now-legacy grids.
Browse files Browse the repository at this point in the history
  • Loading branch information
dannon committed Dec 14, 2017
1 parent bb6e58b commit 985c65e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 1 addition & 3 deletions client/galaxy/scripts/legacy/grid/grid-model.js
@@ -1,6 +1,4 @@
// dependencies

// grid model
// legacy grid model, used by reports and toolshed
export default Backbone.Model.extend({
defaults: {
url_base: "",
Expand Down
3 changes: 0 additions & 3 deletions client/galaxy/scripts/legacy/grid/grid-template.js
Expand Up @@ -112,14 +112,12 @@ export default {
body: function(options) {
// initialize
var tmpl = "";
var num_rows_rendered = 0;
var items_length = options.items.length;

// empty grid?
if (items_length === 0) {
// No results.
tmpl += '<tr><td colspan="100"><em>No Items</em></td></tr>';
num_rows_rendered = 1;
}

// create rows
Expand Down Expand Up @@ -193,7 +191,6 @@ export default {
}
}
tmpl += "</tr>";
num_rows_rendered++;
}
return tmpl;
},
Expand Down

0 comments on commit 985c65e

Please sign in to comment.