CLOUDSTACK-747: Internal LB detailView - Assigned VMs tab - Assign VMs action - trigger a refresh for the listView after action is finished.
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/bdada274 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/bdada274 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/bdada274 Branch: refs/heads/vmsync Commit: bdada2741667185e9a84fd7d3ddddd2c307935c9 Parents: 5a64377 Author: Jessica Wang <jessicaw...@apache.org> Authored: Wed Jun 5 17:20:17 2013 -0700 Committer: Jessica Wang <jessicaw...@apache.org> Committed: Wed Jun 5 17:20:17 2013 -0700 ---------------------------------------------------------------------- ui/scripts/vpc.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/bdada274/ui/scripts/vpc.js ---------------------------------------------------------------------- diff --git a/ui/scripts/vpc.js b/ui/scripts/vpc.js index af77545..e666ab9 100644 --- a/ui/scripts/vpc.js +++ b/ui/scripts/vpc.js @@ -693,7 +693,13 @@ success: function(data) { var jid = data.assigntoloadbalancerruleresponse.jobid; args.response.success({ - _custom: { jobId: jid } + _custom: { + jobId: jid, + getUpdatedItem: function(json) { + $('.list-view').listView('refresh'); + //return json.queryasyncjobresultresponse.jobresult.volume; + } + } }); } });