You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bf...@apache.org on 2013/02/27 22:57:41 UTC

[13/23] git commit: refs/heads/master - Regions UI actions: Refresh region selector listing

Regions UI actions: Refresh region selector listing

After action is performed that adds/removes regions, call
'cloudStack.refreshRegions' to refresh region selector listing.


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/acce7d96
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/acce7d96
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/acce7d96

Branch: refs/heads/master
Commit: acce7d96785e69b00212e3544603b4ab0f900a8f
Parents: b9294da
Author: Brian Federle <br...@citrix.com>
Authored: Tue Feb 26 16:05:43 2013 -0800
Committer: Brian Federle <br...@citrix.com>
Committed: Tue Feb 26 16:05:43 2013 -0800

----------------------------------------------------------------------
 ui/scripts/regions.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/acce7d96/ui/scripts/regions.js
----------------------------------------------------------------------
diff --git a/ui/scripts/regions.js b/ui/scripts/regions.js
index ee77ac1..e4dbaf9 100644
--- a/ui/scripts/regions.js
+++ b/ui/scripts/regions.js
@@ -63,6 +63,7 @@
                 var jobID = json.addregionresponse.jobid;
 
                 args.response.success({ _custom: { jobId: jobID }});
+                $(window).trigger('cloudStack.refreshRegions');
               }
             });
           }
@@ -97,6 +98,7 @@
                 data: { id: region.id },
                 success: function(json) {
                   args.response.success();
+                  $(window).trigger('cloudStack.refreshRegions');
                 }
               });
             }