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

This commit is contained in:
Jessica Wang 2014-11-19 12:00:09 -08:00
parent f0a4a639de
commit b11380eebe

View File

@ -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() {