You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by mc...@apache.org on 2014/03/06 23:07:16 UTC

[33/50] [abbrv] git commit: updated refs/heads/rbac to 48e08fe

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/rbac
Commit: 8b0e04be619ba92e4eb54284da752eec84760bf7
Parents: 4df897f
Author: Brian Federle <br...@citrix.com>
Authored: Tue Mar 4 16:08:35 2014 -0800
Committer: Brian Federle <br...@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();