cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jessicaw...@apache.org
Subject git commit: updated refs/heads/4.2 to 36cd824
Date Tue, 13 Aug 2013 22:13:01 GMT
Updated Branches:
  refs/heads/4.2 9cc1bc40d -> 36cd824ba


CLOUDSTACK-4111: UI > IP Address page > Associate New IP dialog - show/hide cross zone
dropdown upon region "Local" in listRegions API response.


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

Branch: refs/heads/4.2
Commit: 36cd824ba721ddbbee3f405a15d53702b22a113e
Parents: 9cc1bc4
Author: Jessica Wang <jessicawang@apache.org>
Authored: Tue Aug 13 15:10:52 2013 -0700
Committer: Jessica Wang <jessicawang@apache.org>
Committed: Tue Aug 13 15:12:46 2013 -0700

----------------------------------------------------------------------
 ui/scripts/network.js | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/36cd824b/ui/scripts/network.js
----------------------------------------------------------------------
diff --git a/ui/scripts/network.js b/ui/scripts/network.js
index 3b36f6a..2e9bd0e 100755
--- a/ui/scripts/network.js
+++ b/ui/scripts/network.js
@@ -1947,12 +1947,17 @@
                                 		success: function(json) {
                                 		    var items = json.listregionsresponse.region;	
                                 		    if(items != null) {
-                                		    	var region = items[0];                           
    		    	
-                                		    	if(region.portableipserviceenabled == true) {
-                                		    		args.$form.find('.form-item[rel=isportable]').css('display',
'inline-block');
-                                		    	} else {
-                                		    		args.$form.find('.form-item[rel=isportable]').hide();
-                                		    	}                              		    	
+                                		    	for(var i = 0; i < items.length; i++) {
+                                		    		var region = items[0];  
+                                		    		if(region.name == 'Local') {
+	                                    		    	if(region.portableipserviceenabled == true) {
+	                                    		    		args.$form.find('.form-item[rel=isportable]').css('display',
'inline-block');
+	                                    		    	} else {
+	                                    		    		args.$form.find('.form-item[rel=isportable]').hide();
+	                                    		    	}  
+	                                    		    	break;
+                                		    		}
+                                		    	}               		    	
                                 		    }
                                 		}                                		
                                 	});                                	


Mime
View raw message