diff options
author | Ananya Sen | 2012-02-17 14:26:56 -0800 |
---|---|---|
committer | Ananya Sen | 2012-02-17 14:26:56 -0800 |
commit | 2980816130a44cd478b2a9d6606e021efbcebd4a (patch) | |
tree | 762d98ba8852b858c03760f4b9bef294fae6486c /js/io/ui/cloudpopup.reel/cloudpopup.js | |
parent | 96178309ddcdb54c0c451b69ea6fb8cdf76fcf62 (diff) | |
parent | a42c536c2b3209afc058eabd31167bd0aa6f71c8 (diff) | |
download | ninja-2980816130a44cd478b2a9d6606e021efbcebd4a.tar.gz |
Merge branch 'refs/heads/FileIO-jose' into FileIO
Conflicts:
css/ninja.css
js/controllers/document-controller.js
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/io/ui/cloudpopup.reel/cloudpopup.js')
-rwxr-xr-x | js/io/ui/cloudpopup.reel/cloudpopup.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/js/io/ui/cloudpopup.reel/cloudpopup.js b/js/io/ui/cloudpopup.reel/cloudpopup.js index e5bad98e..a2283d46 100755 --- a/js/io/ui/cloudpopup.reel/cloudpopup.js +++ b/js/io/ui/cloudpopup.reel/cloudpopup.js | |||
@@ -88,7 +88,13 @@ exports.CloudPopup = Montage.create(Component, { | |||
88 | downloadCloudApp: { | 88 | downloadCloudApp: { |
89 | enumerable: false, | 89 | enumerable: false, |
90 | value: function() { | 90 | value: function() { |
91 | console.log(this._os); | 91 | if(this._os === 'mac') { |
92 | location.href = '/ninja_localcloud_for_mac.zip'; | ||
93 | } else if (this._os === 'windows') { | ||
94 | location.href = '/ninja_localcloud_for_windows.zip'; | ||
95 | } else { | ||
96 | alert('Your operating system is not supported by the Ninja Local Cloud App.'); | ||
97 | } | ||
92 | } | 98 | } |
93 | }, | 99 | }, |
94 | //////////////////////////////////////////////////////////////////// | 100 | //////////////////////////////////////////////////////////////////// |