cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bfede...@apache.org
Subject [11/29] git commit: refs/heads/master - List view: Add event hook on add row
Date Thu, 14 Mar 2013 17:57:53 GMT
List view: Add event hook on add row

Adds new event 'cloudStack.listView.addRow' which is triggered after new
data row is appended. It passes the table row ($tr) in the data.


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

Branch: refs/heads/master
Commit: ed7ebf57cc1eca8d0259816a1e4950e0f399930e
Parents: f24ee20
Author: Brian Federle <brian.federle@citrix.com>
Authored: Wed Mar 6 13:48:49 2013 -0800
Committer: Brian Federle <brian.federle@citrix.com>
Committed: Wed Mar 6 13:48:49 2013 -0800

----------------------------------------------------------------------
 ui/scripts/ui/widgets/listView.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/ed7ebf57/ui/scripts/ui/widgets/listView.js
----------------------------------------------------------------------
diff --git a/ui/scripts/ui/widgets/listView.js b/ui/scripts/ui/widgets/listView.js
index 9e16ec2..a1e9a95 100644
--- a/ui/scripts/ui/widgets/listView.js
+++ b/ui/scripts/ui/widgets/listView.js
@@ -1037,6 +1037,8 @@
             allowedActions: allowedActions
           }
         );
+
+        $listView.trigger('cloudStack.listView.addRow', { $tr: $tr });
       }
 
       // Add quick view


Mime
View raw message