From 07214ea79a5abfdbcaa4b4c3f77c5e180ede1db3 Mon Sep 17 00:00:00 2001 From: Ryan Moore Date: Fri, 31 Jul 2015 18:01:48 -0400 Subject: [PATCH] 1436 --- js/repeater-list.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/js/repeater-list.js b/js/repeater-list.js index a1d13fbc4..8dec489de 100755 --- a/js/repeater-list.js +++ b/js/repeater-list.js @@ -695,7 +695,12 @@ $table.append($tbody); } - if (data.items && data.items.length < 1) { + if (typeof data.error === 'string' && data.error.length > 0) { + $empty = $(''); + $empty.find('td').append(data.error); + $tbody.append($empty); + } + else if (data.items && data.items.length < 1) { $empty = $(''); $empty.find('td').append(this.viewOptions.list_noItemsHTML); $tbody.append($empty);