List view UI: Fix 'no data to show' message not appearing in some cases

This commit is contained in:
Brian Federle 2013-04-09 14:16:01 -07:00
parent d9d6d21b5c
commit 4fd3fca848

View File

@ -863,7 +863,7 @@
var uiCustom = listViewArgs.uiCustom;
var subselect = uiCustom ? listViewArgs.listView.subselect : null;
if (!data || ($.isArray(data) && !data.length)) {
if (!data || !data.length) {
if (!$tbody.find('tr').size()) {
return [
$('<tr>').addClass('empty').append(