cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alena1...@apache.org
Subject [08/47] git commit: updated refs/heads/internallb to 3795048
Date Thu, 11 Apr 2013 21:22:31 GMT
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 <brian.federle@citrix.com>
Authored: Thu Apr 11 12:24:05 2013 -0700
Committer: Brian Federle <brian.federle@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();


Mime
View raw message