Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
1436
Browse files Browse the repository at this point in the history
  • Loading branch information
rbmoore committed Jul 31, 2015
1 parent 6200580 commit 07214ea
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion js/repeater-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,12 @@
$table.append($tbody);
}

if (data.items && data.items.length < 1) {
if (typeof data.error === 'string' && data.error.length > 0) {
$empty = $('<tr class="empty text-danger"><td colspan="' + this.list_columns.length + '"></td></tr>');
$empty.find('td').append(data.error);
$tbody.append($empty);
}
else if (data.items && data.items.length < 1) {
$empty = $('<tr class="empty"><td colspan="' + this.list_columns.length + '"></td></tr>');
$empty.find('td').append(this.viewOptions.list_noItemsHTML);
$tbody.append($empty);
Expand Down

0 comments on commit 07214ea

Please sign in to comment.