diff options
author | Ananya Sen | 2012-02-21 13:04:58 -0800 |
---|---|---|
committer | Ananya Sen | 2012-02-21 13:04:58 -0800 |
commit | adb90eff3323aa780f9a0879572e3cf3b9f0b969 (patch) | |
tree | 64294ab5135c537083f5c78269699420b62e3ce1 /js/components/ui/icon-list-basic | |
parent | 9f80fc891b7952900dabec04877606c6c8229c61 (diff) | |
download | ninja-adb90eff3323aa780f9a0879572e3cf3b9f0b969.tar.gz |
- file picker - select file on double click
- check cloud availability before IO operations [open file, new file, Save, Save As]. Canceling operation if cloud was unavailable, as per team's agreement.
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/components/ui/icon-list-basic')
-rwxr-xr-x | js/components/ui/icon-list-basic/icon.reel/icon.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/js/components/ui/icon-list-basic/icon.reel/icon.js b/js/components/ui/icon-list-basic/icon.reel/icon.js index b0279207..72adbfa1 100755 --- a/js/components/ui/icon-list-basic/icon.reel/icon.js +++ b/js/components/ui/icon-list-basic/icon.reel/icon.js | |||
@@ -131,6 +131,11 @@ var Icon = exports.Icon = Montage.create(Component, { | |||
131 | openFolderEvent.initEvent("openFolder", false, false); | 131 | openFolderEvent.initEvent("openFolder", false, false); |
132 | openFolderEvent.folderUri = this.icondata.uri; | 132 | openFolderEvent.folderUri = this.icondata.uri; |
133 | this.element.dispatchEvent(openFolderEvent); | 133 | this.element.dispatchEvent(openFolderEvent); |
134 | }else{ | ||
135 | var openFolderEvent = document.createEvent("Events"); | ||
136 | openFolderEvent.initEvent("selectFile", false, false); | ||
137 | openFolderEvent.fileUri = this.icondata.uri; | ||
138 | this.element.dispatchEvent(openFolderEvent); | ||
134 | } | 139 | } |
135 | if(evt.bubbles){ | 140 | if(evt.bubbles){ |
136 | evt.stopPropagation(); | 141 | evt.stopPropagation(); |