diff options
author | Ananya Sen | 2012-02-29 14:53:13 -0800 |
---|---|---|
committer | Ananya Sen | 2012-02-29 14:53:13 -0800 |
commit | 5d4f1aad01737695238582c704e6d4f2c3a2f317 (patch) | |
tree | bf202a3432e3cfa928a57ee80d54af91b9e2509a /js/io | |
parent | ccedeef38d6eb2e55d1782b82401828f3c99dd9c (diff) | |
parent | 551e1f2be11e9e6ab7af17816396b88aafd57dff (diff) | |
download | ninja-5d4f1aad01737695238582c704e6d4f2c3a2f317.tar.gz |
Merge branch 'refs/heads/ninja-internal-master' into FileIO
Diffstat (limited to 'js/io')
-rwxr-xr-x | js/io/system/coreioapi.js | 6 | ||||
-rwxr-xr-x | js/io/ui/cloudpopup.reel/cloudpopup.js | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/js/io/system/coreioapi.js b/js/io/system/coreioapi.js index 2051da43..f428a229 100755 --- a/js/io/system/coreioapi.js +++ b/js/io/system/coreioapi.js | |||
@@ -28,9 +28,9 @@ exports.CoreIoApi = Montage.create(Component, { | |||
28 | value: function () { | 28 | value: function () { |
29 | //////////////////////////////////////////////////////////// | 29 | //////////////////////////////////////////////////////////// |
30 | //Checking for local storage of URL for IO | 30 | //Checking for local storage of URL for IO |
31 | if (window.localStorage['ioRootUrl']) { | 31 | if (this.application.localStorage.getItem("ioRootUrl")) { |
32 | //Getting URL from local storage | 32 | //Getting URL from local storage |
33 | this.rootUrl = window.localStorage['ioRootUrl']; | 33 | this.rootUrl = this.application.localStorage.getItem("ioRootUrl"); |
34 | //Checks for IO API to be active | 34 | //Checks for IO API to be active |
35 | this.ioServiceDetected = this.cloudAvailable(); | 35 | this.ioServiceDetected = this.cloudAvailable(); |
36 | } else { | 36 | } else { |
@@ -156,7 +156,7 @@ exports.CoreIoApi = Montage.create(Component, { | |||
156 | return this._rootUrl; | 156 | return this._rootUrl; |
157 | }, | 157 | }, |
158 | set: function(value) { | 158 | set: function(value) { |
159 | this._rootUrl = window.localStorage["ioRootUrl"] = value; | 159 | this._rootUrl = this.application.localStorage.setItem("ioRootUrl", value); |
160 | } | 160 | } |
161 | }, | 161 | }, |
162 | //////////////////////////////////////////////////////////////////// | 162 | //////////////////////////////////////////////////////////////////// |
diff --git a/js/io/ui/cloudpopup.reel/cloudpopup.js b/js/io/ui/cloudpopup.reel/cloudpopup.js index d2e82662..a4656bb5 100755 --- a/js/io/ui/cloudpopup.reel/cloudpopup.js +++ b/js/io/ui/cloudpopup.reel/cloudpopup.js | |||
@@ -63,8 +63,8 @@ exports.CloudPopup = Montage.create(Component, { | |||
63 | enumerable: false, | 63 | enumerable: false, |
64 | value: function() { | 64 | value: function() { |
65 | // | 65 | // |
66 | if (window.localStorage['ioRootUrl']) { | 66 | if (this.application.localStorage.getItem("ioRootUrl")) { |
67 | this.components.url.value = window.localStorage['ioRootUrl']; | 67 | this.components.url.value = this.application.localStorage.getItem("ioRootUrl"); |
68 | } | 68 | } |
69 | // | 69 | // |
70 | this.testConnection(); | 70 | this.testConnection(); |