incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bfede...@apache.org
Subject [2/2] git commit: refs/heads/ui-regions - Regions UI actions: Refresh region selector listing
Date Wed, 27 Feb 2013 00:08:53 GMT
Updated Branches:
  refs/heads/ui-regions b9a459c24 -> acce7d967


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/ui-regions
Commit: acce7d96785e69b00212e3544603b4ab0f900a8f
Parents: b9294da
Author: Brian Federle <brian.federle@citrix.com>
Authored: Tue Feb 26 16:05:43 2013 -0800
Committer: Brian Federle <brian.federle@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');
                 }
               });
             }


Mime
View raw message