dont show table if there isnt any dataz

This commit is contained in:
Max Ogden 2011-08-03 19:45:41 -04:00
parent 7cbf23088c
commit fe9e7f4c61
2 changed files with 3 additions and 2 deletions

View File

@ -139,7 +139,7 @@
<table class="data-table" cellspacing="0">
<tbody>
<tr>
<td class="column-header"></td>
{{#notEmpty}}<td class="column-header"></td>{{/notEmpty}}
{{#headers}}
<td class="column-header">
<div class="column-header-title">

View File

@ -73,7 +73,8 @@ var recline = function() {
util.render('dataTable', 'data-table-container', {
rows: tableRows,
headers: app.headers
headers: app.headers,
notEmpty: function() { return app.headers.length > 0 }
})
app.newest = rows[0].id;