diff options
author | Jose Antonio Marquez Russo | 2012-02-22 14:18:39 -0800 |
---|---|---|
committer | Jose Antonio Marquez Russo | 2012-02-22 14:18:39 -0800 |
commit | e150cea29af96c4d57e3f6cd2ecda0a3c86f366d (patch) | |
tree | f3410214d1049514322127cf8256fee2ab7f420c /js/components/ui/icon-list-basic/icon.reel | |
parent | 5da4627fe899c03e885d10a77a5e33bb15875504 (diff) | |
parent | dbf0ca5637a3bca87c21c65ada47f8a4d794f78c (diff) | |
download | ninja-e150cea29af96c4d57e3f6cd2ecda0a3c86f366d.tar.gz |
Merge pull request #16 from ananyasen/FileIO
FileIO branch pull request
Diffstat (limited to 'js/components/ui/icon-list-basic/icon.reel')
-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(); |