From b11380eebe6bd5af62f88de8853028200528b77b Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Wed, 19 Nov 2014 12:00:09 -0800 Subject: [PATCH] CLOUDSTACK-7943: UI > dialog widget > checkbox field > isChecked property > if isChecked property is a funciton, pass "args" along when calling isChecked() function. --- ui/scripts/ui/dialog.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/scripts/ui/dialog.js b/ui/scripts/ui/dialog.js index 332b78f775c..610cb1a1970 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() {