~vcs-imports/elasticfox/trunk

« back to all changes in this revision

Viewing changes to src/chrome/content/ec2ui/vpnconnectionsview.js

  • Committer: jhatax
  • Date: 2009-12-03 19:10:23 UTC
  • Revision ID: vcs-imports@canonical.com-20091203191023-v7ukr9hwkclj3ihf
Preparing elasticfox to work with SFO.

M    ec2ui/controller.js
M    ec2ui/vpnconnectionsview.js
M    ec2ui/session.js
M    ec2ui/preferences.js
M    ec2ui/ec2ui_main_window.xul

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 
7
7
    imageIdRegex : new RegExp("^vpn-"),
8
8
 
9
 
    
 
9
 
10
10
 
11
11
    getSearchText : function() {
12
12
        return document.getElementById('ec2ui.vpnconnections.search').value;
87
87
 
88
88
        var vpn = this.getSelectedImage();
89
89
        if (vpn == null) return;
 
90
        if (vpn.config == null) {
 
91
           alert("The Customer Gateway configuration for this VPN Connection is not present.")
 
92
           return;
 
93
        }
90
94
 
91
 
        window.openDialog("chrome://ec2ui/content/dialog_vpnconnection_customer_config.xul", null, "chrome,centerscreen,modal", ec2ui_session, retVal, ec2_httpclient);
 
95
        window.openDialog("chrome://ec2ui/content/dialog_vpnconnection_customer_config.xul",
 
96
                          null,
 
97
                          "chrome,centerscreen,modal",
 
98
                          ec2ui_session,
 
99
                          retVal,
 
100
                          ec2_httpclient);
92
101
 
93
102
        configXml = new DOMParser().parseFromString(vpn.config, "text/xml");
94
103
 
111
120
            } catch (e) {
112
121
                alert("Exception while processing XSLT: "+e)
113
122
            }
114
 
    
 
123
 
115
124
            // Display dialog box to save
116
125
            this.saveConnectionConfiguration(vpn.id, result);
117
126