diff options
author | Ananya Sen | 2012-02-02 12:38:29 -0800 |
---|---|---|
committer | Ananya Sen | 2012-02-02 12:38:29 -0800 |
commit | e806afea0eb1b66ac457471983db0e3d5942d222 (patch) | |
tree | d2b712293dc0c8b5f6d9dfe77f7b7eebfd62ac7c /js/io/ui/cloudpopup.reel/cloudpopup.js | |
parent | 0e595c4e11ce9b44eff157de8616ed15fcd5d6fc (diff) | |
parent | 33e655cbbb0816340c5a2e5d5cc0a6b0c7d9f53c (diff) | |
download | ninja-e806afea0eb1b66ac457471983db0e3d5942d222.tar.gz |
Merge branch 'FileIO' of github.com:joseeight/ninja-internal into FileIO
Diffstat (limited to 'js/io/ui/cloudpopup.reel/cloudpopup.js')
-rwxr-xr-x | js/io/ui/cloudpopup.reel/cloudpopup.js | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/js/io/ui/cloudpopup.reel/cloudpopup.js b/js/io/ui/cloudpopup.reel/cloudpopup.js index e8558179..7f494dcf 100755 --- a/js/io/ui/cloudpopup.reel/cloudpopup.js +++ b/js/io/ui/cloudpopup.reel/cloudpopup.js | |||
@@ -51,6 +51,9 @@ exports.CloudPopup = Montage.create(Component, { | |||
51 | value: function() { | 51 | value: function() { |
52 | // | 52 | // |
53 | this.testConnection(); | 53 | this.testConnection(); |
54 | if (this.application.ninja.coreIoApi.cloudAvailable()) { | ||
55 | this.closeDialog(); | ||
56 | } | ||
54 | } | 57 | } |
55 | }, | 58 | }, |
56 | //////////////////////////////////////////////////////////////////// | 59 | //////////////////////////////////////////////////////////////////// |
@@ -62,7 +65,7 @@ exports.CloudPopup = Montage.create(Component, { | |||
62 | this.components.test_btn.addEventListener('click', this.testConnection.bind(this), false); | 65 | this.components.test_btn.addEventListener('click', this.testConnection.bind(this), false); |
63 | // | 66 | // |
64 | this.components.ok_btn.addEventListener('click', this.closeDialog.bind(this), false); | 67 | this.components.ok_btn.addEventListener('click', this.closeDialog.bind(this), false); |
65 | this.components.cancel_btn.addEventListener('click', this.closeDialog.bind(this), false); | 68 | this.components.cancel_btn.addEventListener('click', this.cancelDialog.bind(this), false); |
66 | } | 69 | } |
67 | }, | 70 | }, |
68 | //////////////////////////////////////////////////////////////////// | 71 | //////////////////////////////////////////////////////////////////// |
@@ -90,6 +93,16 @@ exports.CloudPopup = Montage.create(Component, { | |||
90 | // | 93 | // |
91 | this.application.ninja.coreIoApi.hideCloudDialog(); | 94 | this.application.ninja.coreIoApi.hideCloudDialog(); |
92 | } | 95 | } |
96 | }, | ||
97 | //////////////////////////////////////////////////////////////////// | ||
98 | // | ||
99 | cancelDialog: { | ||
100 | enumerable: false, | ||
101 | value: function() { | ||
102 | // | ||
103 | this.application.ninja.coreIoApi.rootUrl = null; | ||
104 | this.application.ninja.coreIoApi.hideCloudDialog(); | ||
105 | } | ||
93 | } | 106 | } |
94 | //////////////////////////////////////////////////////////////////// | 107 | //////////////////////////////////////////////////////////////////// |
95 | //////////////////////////////////////////////////////////////////// | 108 | //////////////////////////////////////////////////////////////////// |