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 b11380e
Date Wed, 19 Nov 2014 20:04:31 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/master f0a4a639d -> b11380eeb


CLOUDSTACK-7943: UI > dialog widget > checkbox field > isChecked property > if
isChecked property is a funciton, pass "args" along when calling isChecked() function.


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

Branch: refs/heads/master
Commit: b11380eebe6bd5af62f88de8853028200528b77b
Parents: f0a4a63
Author: Jessica Wang <jessicawang@apache.org>
Authored: Wed Nov 19 12:00:09 2014 -0800
Committer: Jessica Wang <jessicawang@apache.org>
Committed: Wed Nov 19 12:04:16 2014 -0800

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


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/b11380ee/ui/scripts/ui/dialog.js
----------------------------------------------------------------------
diff --git a/ui/scripts/ui/dialog.js b/ui/scripts/ui/dialog.js
index 332b78f..610cb1a 100644
--- a/ui/scripts/ui/dialog.js
+++ b/ui/scripts/ui/dialog.js
@@ -411,12 +411,12 @@
                         }).appendTo($value);
                     	var isChecked;
                     	if (typeof (field.isChecked) == 'function') {
-                    	    isChecked = field.isChecked();
+                    	    isChecked = field.isChecked(args);
                     	} else {
                     	    isChecked = field.isChecked;
                     	}
                         if (isChecked) {
-                        	$input.attr('checked', strOrFunc(field.isChecked));
+                        	$input.attr('checked', strOrFunc(field.isChecked, args));
                         } else {
                             // This is mainly for IE compatibility
                             setTimeout(function() {


Mime
View raw message