mirror of https://github.com/apache/cloudstack.git
parent
fe1a53b0e0
commit
9c56b3d4db
|
|
@ -223,10 +223,12 @@
|
|||
});
|
||||
|
||||
if ($dependsOn.is('[type=checkbox]')) {
|
||||
|
||||
var isReverse = false;
|
||||
if (args.form.fields[dependsOn])
|
||||
|
||||
if (args.form.fields[dependsOn]) {
|
||||
isReverse = args.form.fields[dependsOn].isReverse;
|
||||
isChecked = args.form.fields[dependsOn].isChecked;
|
||||
}
|
||||
|
||||
// Checkbox
|
||||
$dependsOn.bind('click', function(event) {
|
||||
|
|
@ -260,6 +262,10 @@
|
|||
// Show fields by default if it is reverse checkbox
|
||||
if (isReverse) {
|
||||
$dependsOn.click();
|
||||
|
||||
if (isChecked) {
|
||||
$dependsOn.attr('checked', true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue