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/master to 24ef5ba
Date Sat, 10 Aug 2013 00:27:01 GMT
Updated Branches:
  refs/heads/master 4333209af -> 24ef5ba9f


CLOUDSTACK-4134: UI > Infrastructure > zone > physical network > guest > edit
action - pass vlan parameter to updatePhysicalNetwork API no matter vlan field is blank or
not.


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

Branch: refs/heads/master
Commit: 24ef5ba9f7a9634ac11192aa02dba578a6757d3c
Parents: 4333209
Author: Jessica Wang <jessicawang@apache.org>
Authored: Fri Aug 9 17:24:51 2013 -0700
Committer: Jessica Wang <jessicawang@apache.org>
Committed: Fri Aug 9 17:26:53 2013 -0700

----------------------------------------------------------------------
 ui/scripts/system.js | 19 +++++++++----------
 1 file changed, 9 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/24ef5ba9/ui/scripts/system.js
----------------------------------------------------------------------
diff --git a/ui/scripts/system.js b/ui/scripts/system.js
index 531c992..f4bee5a 100644
--- a/ui/scripts/system.js
+++ b/ui/scripts/system.js
@@ -1086,16 +1086,15 @@
                                     var data = {
                                     	id: selectedPhysicalNetworkObj.id,
                                     };                                 
-                                    if (args.data.vlan != null && args.data.vlan.length
> 0) {
-                                    	$.extend(data, {
-                                    		vlan: args.data.vlan
-                                    	});
-                                    }                                        
-                                    if (args.data.tags != null && args.data.tags.length
> 0) {
-                                    	$.extend(data, {
-                                    		tags: args.data.tags
-                                    	});
-                                    }    
+                                   
+                                	$.extend(data, {
+                                		vlan: args.data.vlan
+                                	});                                                    
                  
+                                
+                                	$.extend(data, {
+                                		tags: args.data.tags
+                                	});
+                                        
                                     $.ajax({
                                         url: createURL('updatePhysicalNetwork'),
                                         data: data,


Mime
View raw message