cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bfede...@apache.org
Subject git commit: updated refs/heads/master to b01720d
Date Wed, 19 Feb 2014 22:37:38 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/master 5e717cbb8 -> b01720d93


listView: Fix 'addRow' event being triggered under wrong scope


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/b01720d9
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/b01720d9
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/b01720d9

Branch: refs/heads/master
Commit: b01720d9366dadad6510bba5b1017a58aa42b55b
Parents: 5e717cb
Author: Brian Federle <brian.federle@citrix.com>
Authored: Wed Feb 19 14:36:23 2014 -0800
Committer: Brian Federle <brian.federle@citrix.com>
Committed: Wed Feb 19 14:36:23 2014 -0800

----------------------------------------------------------------------
 ui/scripts/ui/widgets/listView.js | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/b01720d9/ui/scripts/ui/widgets/listView.js
----------------------------------------------------------------------
diff --git a/ui/scripts/ui/widgets/listView.js b/ui/scripts/ui/widgets/listView.js
index daf86ff..9e399e1 100644
--- a/ui/scripts/ui/widgets/listView.js
+++ b/ui/scripts/ui/widgets/listView.js
@@ -1275,13 +1275,13 @@
                         allowedActions: allowedActions
                     }
                 );
-
-                $listView.trigger('cloudStack.listView.addRow', {
-                    $tr: $tr
-                });
             }
 
-            // Add sub-select
+          $tr.closest('.list-view').trigger('cloudStack.listView.addRow', {
+            $tr: $tr
+          });
+
+          // Add sub-select
             if (subselect) {
                 var $td = $tr.find('td.first');
                 var $select = $('<div></div>').addClass('subselect').append(


Mime
View raw message