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/03/05 01:11:50 UTC

git commit: updated refs/heads/master to 8b0e04b

Repository: cloudstack
Updated Branches:
  refs/heads/master 4df897f4a -> 8b0e04be6


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/master
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();