Skip to content

Commit

Permalink
Remove the same cruft from the mvc/grid/grid-template.
Browse files Browse the repository at this point in the history
  • Loading branch information
dannon committed Dec 14, 2017
1 parent 985c65e commit e08a283
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions client/galaxy/scripts/mvc/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 e08a283

Please sign in to comment.