dont show table if there isnt any dataz
This commit is contained in:
@@ -139,7 +139,7 @@
|
|||||||
<table class="data-table" cellspacing="0">
|
<table class="data-table" cellspacing="0">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="column-header"></td>
|
{{#notEmpty}}<td class="column-header"></td>{{/notEmpty}}
|
||||||
{{#headers}}
|
{{#headers}}
|
||||||
<td class="column-header">
|
<td class="column-header">
|
||||||
<div class="column-header-title">
|
<div class="column-header-title">
|
||||||
|
|||||||
@@ -73,7 +73,8 @@ var recline = function() {
|
|||||||
|
|
||||||
util.render('dataTable', 'data-table-container', {
|
util.render('dataTable', 'data-table-container', {
|
||||||
rows: tableRows,
|
rows: tableRows,
|
||||||
headers: app.headers
|
headers: app.headers,
|
||||||
|
notEmpty: function() { return app.headers.length > 0 }
|
||||||
})
|
})
|
||||||
|
|
||||||
app.newest = rows[0].id;
|
app.newest = rows[0].id;
|
||||||
|
|||||||
Reference in New Issue
Block a user