You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by al...@apache.org on 2013/04/11 23:22:31 UTC
[08/47] git commit: updated refs/heads/internallb to 3795048
List view: Fix broken add row action
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/3bcec62e
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/3bcec62e
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/3bcec62e
Branch: refs/heads/internallb
Commit: 3bcec62e64900f6b5ed7246f8028736c280eac10
Parents: f35272b
Author: Brian Federle <br...@citrix.com>
Authored: Thu Apr 11 12:24:05 2013 -0700
Committer: Brian Federle <br...@citrix.com>
Committed: Thu Apr 11 12:29:02 2013 -0700
----------------------------------------------------------------------
ui/scripts/ui/widgets/listView.js | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/3bcec62e/ui/scripts/ui/widgets/listView.js
----------------------------------------------------------------------
diff --git a/ui/scripts/ui/widgets/listView.js b/ui/scripts/ui/widgets/listView.js
index 1c74056..c5e0561 100644
--- a/ui/scripts/ui/widgets/listView.js
+++ b/ui/scripts/ui/widgets/listView.js
@@ -863,16 +863,14 @@
var uiCustom = listViewArgs.uiCustom;
var subselect = uiCustom ? listViewArgs.listView.subselect : null;
- if (!data || !data.length) {
+ if (!(data && data.length)) {
if (!$tbody.find('tr').size()) {
return [
- $('<tr>').addClass('empty').append(
+ $('<tr>').addClass('empty last').append(
$('<td>').html(_l('label.no.data'))
).appendTo($tbody)
];
}
-
- return $tbody.find('tr:last').addClass('last');
}
$tbody.find('tr.empty').remove();