Repository: cloudstack Updated Branches: refs/heads/master 847e1e47a -> 38bd1b934
Revert "CLOUDSTACK-7647: Fix 'isReverse' checkboxes which are checked by default" This reverts commit ef4b5d41b7dd9ba16afd04c7716bada4a4721f79. Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/38bd1b93 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/38bd1b93 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/38bd1b93 Branch: refs/heads/master Commit: 38bd1b934ef770e8a2993c8f42b3fff03484f266 Parents: 847e1e4 Author: Jessica Wang <[email protected]> Authored: Tue Sep 30 12:54:16 2014 -0700 Committer: Jessica Wang <[email protected]> Committed: Tue Sep 30 12:54:16 2014 -0700 ---------------------------------------------------------------------- ui/scripts/ui/dialog.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/38bd1b93/ui/scripts/ui/dialog.js ---------------------------------------------------------------------- diff --git a/ui/scripts/ui/dialog.js b/ui/scripts/ui/dialog.js index 2bd0797..950d596 100644 --- a/ui/scripts/ui/dialog.js +++ b/ui/scripts/ui/dialog.js @@ -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); - } } } }
