cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jessicaw...@apache.org
Subject git commit: updated refs/heads/master to 74847dc
Date Fri, 08 Aug 2014 01:56:05 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/master 67ca2557f -> 74847dce4


UI > dialog widget > text field > set default value > pass context to function(){}.


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

Branch: refs/heads/master
Commit: 74847dce47be2a40c8068adc71ad45b6b8460c6b
Parents: 67ca255
Author: Jessica Wang <jessicawang@apache.org>
Authored: Thu Aug 7 18:54:09 2014 -0700
Committer: Jessica Wang <jessicawang@apache.org>
Committed: Thu Aug 7 18:55:52 2014 -0700

----------------------------------------------------------------------
 ui/scripts/ui/dialog.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/74847dce/ui/scripts/ui/dialog.js
----------------------------------------------------------------------
diff --git a/ui/scripts/ui/dialog.js b/ui/scripts/ui/dialog.js
index 75fa9de..ff1353e 100644
--- a/ui/scripts/ui/dialog.js
+++ b/ui/scripts/ui/dialog.js
@@ -566,7 +566,7 @@
                     }).appendTo($value);
 
                     if (field.defaultValue) {
-                        $input.val(strOrFunc(field.defaultValue));
+                        $input.val(strOrFunc(field.defaultValue, args.context));
                     }
                     if (field.id) {
                         $input.attr('id', field.id);


Mime
View raw message