dont show table if there isnt any dataz
This commit is contained in:
parent
7cbf23088c
commit
fe9e7f4c61
@ -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">
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user