cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mlsoren...@apache.org
Subject [02/50] [abbrv] git commit: updated refs/heads/resize-root to 0eb9967
Date Sat, 08 Mar 2014 00:22:35 GMT
Dialog: Trigger event when createform fields are being drawn

Trigger new event 'cloudStack.createForm.makeFields'
before field params are being passed to createForm for rendering.

This allows plugins to change and intepret fields before they are drawn.


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

Branch: refs/heads/resize-root
Commit: 8b0e04be619ba92e4eb54284da752eec84760bf7
Parents: 4df897f
Author: Brian Federle <brian.federle@citrix.com>
Authored: Tue Mar 4 16:08:35 2014 -0800
Committer: Brian Federle <brian.federle@citrix.com>
Committed: Tue Mar 4 16:11:26 2014 -0800

----------------------------------------------------------------------
 ui/scripts/ui/dialog.js | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/8b0e04be/ui/scripts/ui/dialog.js
----------------------------------------------------------------------
diff --git a/ui/scripts/ui/dialog.js b/ui/scripts/ui/dialog.js
index 035c355..5f0697a 100644
--- a/ui/scripts/ui/dialog.js
+++ b/ui/scripts/ui/dialog.js
@@ -70,6 +70,11 @@
                 return key;
             });
 
+            $(window).trigger('cloudStack.createForm.makeFields', {
+                $form: $form,
+                fields: fields
+            });
+
             var ret = function() {
                 $('.overlay').remove();
 


Mime
View raw message