mirror of https://github.com/apache/cloudstack.git
Revert "CLOUDSTACK-7647: Fix 'isReverse' checkboxes which are checked by default"
This reverts commitef4b5d41b7. (cherry picked from commit38bd1b934e)
This commit is contained in:
parent
ee23be1942
commit
e1d554c352
|
|
@ -225,11 +225,8 @@
|
|||
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) {
|
||||
|
|
@ -263,10 +260,6 @@
|
|||
// Show fields by default if it is reverse checkbox
|
||||
if (isReverse) {
|
||||
$dependsOn.click();
|
||||
|
||||
if (isChecked) {
|
||||
$dependsOn.attr('checked', true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue