You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bf...@apache.org on 2014/02/20 20:17:42 UTC
[36/50] [abbrv] git commit: updated refs/heads/ui-restyle to c64bfa5
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/ui-restyle
Commit: b01720d9366dadad6510bba5b1017a58aa42b55b
Parents: 5e717cb
Author: Brian Federle <br...@citrix.com>
Authored: Wed Feb 19 14:36:23 2014 -0800
Committer: Brian Federle <br...@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(