Affinity UI: Pre-select checkboxes
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/2f0e0d9a Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/2f0e0d9a Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/2f0e0d9a Branch: refs/heads/master Commit: 2f0e0d9a7dfb106f5639ecf2d95adf66de2d050b Parents: a589a36 Author: Brian Federle <brian.fede...@citrix.com> Authored: Mon Apr 15 14:02:58 2013 -0700 Committer: Brian Federle <brian.fede...@citrix.com> Committed: Mon Apr 15 14:02:58 2013 -0700 ---------------------------------------------------------------------- ui/scripts/instances.js | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/2f0e0d9a/ui/scripts/instances.js ---------------------------------------------------------------------- diff --git a/ui/scripts/instances.js b/ui/scripts/instances.js index e360dbe..baf1823 100644 --- a/ui/scripts/instances.js +++ b/ui/scripts/instances.js @@ -645,9 +645,9 @@ dataProvider: function(args) { args.response.success({ data: [ - { id: 1, name: 'Affinity Group 1', type: 'Affinity' }, + { id: 1, name: 'Affinity Group 1', type: 'Affinity', _isSelected: true }, { id: 2, name: 'Affinity Group 2', type: 'Anti-affinity' }, - { id: 3, name: 'Anti-affinity Group', type: 'Anti-affinity' } + { id: 3, name: 'Anti-affinity Group', type: 'Anti-affinity', _isSelected: true } ] }); }