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

Commit

Permalink
Merge pull request #1437 from rbmoore/1436
Browse files Browse the repository at this point in the history
1436
  • Loading branch information
swilliamset committed Aug 5, 2015
2 parents 20695a9 + 07214ea commit cef6d99
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 @@ -739,7 +739,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 cef6d99

Please sign in to comment.