aboutsummaryrefslogtreecommitdiff
path: root/js/io/ui/cloudpopup.reel
diff options
context:
space:
mode:
Diffstat (limited to 'js/io/ui/cloudpopup.reel')
-rwxr-xr-xjs/io/ui/cloudpopup.reel/cloudpopup.html2
-rwxr-xr-xjs/io/ui/cloudpopup.reel/cloudpopup.js8
2 files changed, 8 insertions, 2 deletions
diff --git a/js/io/ui/cloudpopup.reel/cloudpopup.html b/js/io/ui/cloudpopup.reel/cloudpopup.html
index 2c1c169a..e58041ec 100755
--- a/js/io/ui/cloudpopup.reel/cloudpopup.html
+++ b/js/io/ui/cloudpopup.reel/cloudpopup.html
@@ -36,7 +36,7 @@
36 36
37 <p>Connection to the Cloud Server was not detected. Please verify <br />that the server is running and the URL below is correct.</p> 37 <p>Connection to the Cloud Server was not detected. Please verify <br />that the server is running and the URL below is correct.</p>
38 38
39 <label for="cloud_url">Cloud Server URL:</label><input type="text" id="cloud_url" class="cloud_url" value="http://localhost:16380" /> 39 <label for="cloud_url">Cloud Server URL:</label><input type="text" id="cloud_url" class="cloud_url" value="" />
40 40
41 <button class="btn_test nj-skinned">Test</button> 41 <button class="btn_test nj-skinned">Test</button>
42 42
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 ////////////////////////////////////////////////////////////////////