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 9863287
Date Thu, 01 Aug 2013 23:44:41 GMT
Updated Branches:
  refs/heads/master a3b86573b -> 986328773


CLOUDSTACK-3753: UI > Infrastructure > zone > physical network > Guest > remove
Add VLAN Range action since VLAN Range(s) is editable through Edit action.


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

Branch: refs/heads/master
Commit: 9863287730d0a9dd0148c99591f55354e6321302
Parents: a3b8657
Author: Jessica Wang <jessicawang@apache.org>
Authored: Thu Aug 1 16:40:30 2013 -0700
Committer: Jessica Wang <jessicawang@apache.org>
Committed: Thu Aug 1 16:44:30 2013 -0700

----------------------------------------------------------------------
 ui/scripts/system.js | 62 -----------------------------------------------
 1 file changed, 62 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/98632877/ui/scripts/system.js
----------------------------------------------------------------------
diff --git a/ui/scripts/system.js b/ui/scripts/system.js
index 6ef832c..3251f47 100644
--- a/ui/scripts/system.js
+++ b/ui/scripts/system.js
@@ -1117,68 +1117,6 @@
                                 notification: {
                                     poll: pollAsyncJobResult
                                 }
-                            },
-
-                            addVlanRange: {
-                                label: 'Add VLAN Range',
-                                title: 'Add VLAN Range',
-
-                                messages: {
-                                    confirm: function(args) {
-                                        return 'Are you sure you want to add another VLAN
Range to this guest network?';
-                                    },
-                                    notification: function(args) {
-                                        return 'VLAN Range added';
-                                    }
-                                },
-
-                                createForm: {
-                                    title: 'Add VLAN Range',
-                                    fields: {
-                                        startvlan: {
-                                            label: 'Vlan Start',
-                                            validation: {
-                                                required: true
-                                            }
-                                        },
-                                        endvlan: {
-                                            label: 'Vlan End',
-                                            validation: {
-                                                required: true
-                                            }
-                                        }
-                                    }
-
-                                },
-
-                                action: function(args) {
-                                    var array1 = [];                                    
-                                    if (args.data.startvlan != "" && args.data.endvlan
!= "") {
-                                    	var newVlanRange = todb(args.data.startvlan) + "-" +
todb(args.data.endvlan);                                    	
-                                    	if(selectedPhysicalNetworkObj.vlan == "")
-                                    		array1.push("&vlan=" + newVlanRange);	
-                                    	else	
-                                            array1.push("&vlan=" + selectedPhysicalNetworkObj.vlan
+ "," + newVlanRange);
-                                    }
-                                    $.ajax({
-                                        url: createURL("updatePhysicalNetwork&id=" +
selectedPhysicalNetworkObj.id + array1.join("")),
-                                        dataType: "json",
-                                        success: function(json) {
-                                            var jobId = json.updatephysicalnetworkresponse.jobid;
-                                            args.response.success({
-                                                _custom: {
-                                                    jobId: jobId
-                                                }
-                                            });
-                                        },
-                                        error: function(json) {
-                                            args.response.error(parseXMLHttpResponse(json));
-                                        }
-                                    });
-                                },
-                                notification: {
-                                    poll: pollAsyncJobResult
-                                }
                             }
                         },
 


Mime
View raw message