mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
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:
parent
f0a4a639de
commit
b11380eebe
@ -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() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user