aboutsummaryrefslogtreecommitdiff
path: root/js/io/ui/cloudpopup.reel
diff options
context:
space:
mode:
authorAnanya Sen2012-02-20 15:15:37 -0800
committerAnanya Sen2012-02-20 15:15:37 -0800
commit3251315ecc22544dab50623ee5862e00dfe02302 (patch)
tree7e4a470009f4a46b9f79f5e93dfe3ddf0bfabf12 /js/io/ui/cloudpopup.reel
parent50e555587d3a97dbfc75c33f3589cfccee392180 (diff)
downloadninja-3251315ecc22544dab50623ee5862e00dfe02302.tar.gz
check cloud availability before open file picker and new file dialogs
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/io/ui/cloudpopup.reel')
-rwxr-xr-xjs/io/ui/cloudpopup.reel/cloudpopup.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/js/io/ui/cloudpopup.reel/cloudpopup.js b/js/io/ui/cloudpopup.reel/cloudpopup.js
index a2283d46..8e24f1a1 100755
--- a/js/io/ui/cloudpopup.reel/cloudpopup.js
+++ b/js/io/ui/cloudpopup.reel/cloudpopup.js
@@ -23,6 +23,12 @@ exports.CloudPopup = Montage.create(Component, {
23 }, 23 },
24 //////////////////////////////////////////////////////////////////// 24 ////////////////////////////////////////////////////////////////////
25 // 25 //
26 callback:{
27 writable:true,
28 enumerable:true,
29 value:null
30 },
31 //
26 components: { 32 components: {
27 enumerable: false, 33 enumerable: false,
28 value: {test_btn: null, ok_btn: null, cancel_btn: null, download_btn: null, status: null, url: null} 34 value: {test_btn: null, ok_btn: null, cancel_btn: null, download_btn: null, status: null, url: null}
@@ -121,6 +127,10 @@ exports.CloudPopup = Montage.create(Component, {
121 value: function() { 127 value: function() {
122 // 128 //
123 this.application.ninja.coreIoApi.hideCloudDialog(); 129 this.application.ninja.coreIoApi.hideCloudDialog();
130 this.application.ninja.coreIoApi._cloudDialogOpen=false;
131 if(!!this.callback){
132 this.callback();
133 }
124 } 134 }
125 }, 135 },
126 //////////////////////////////////////////////////////////////////// 136 ////////////////////////////////////////////////////////////////////
@@ -131,6 +141,7 @@ exports.CloudPopup = Montage.create(Component, {
131 // 141 //
132 this.application.ninja.coreIoApi.rootUrl = null; 142 this.application.ninja.coreIoApi.rootUrl = null;
133 this.application.ninja.coreIoApi.hideCloudDialog(); 143 this.application.ninja.coreIoApi.hideCloudDialog();
144 this.application.ninja.coreIoApi._cloudDialogOpen=false;
134 } 145 }
135 } 146 }
136 //////////////////////////////////////////////////////////////////// 147 ////////////////////////////////////////////////////////////////////