diff options
author | Jose Antonio Marquez | 2012-02-15 20:37:48 -0800 |
---|---|---|
committer | Jose Antonio Marquez | 2012-02-15 20:37:48 -0800 |
commit | 89b5e793ea88ef235b54b6e1d1c379698d3e612b (patch) | |
tree | 4d29118f35df77ca6b423119a4ff61694a442cbf /js/components/ui/icon-list-basic/icon.reel/icon.js | |
parent | 9d2c2a80483415d7560b00cda5519153db23e241 (diff) | |
parent | d366c0bd1af6471511217ed574083e15059519b5 (diff) | |
download | ninja-89b5e793ea88ef235b54b6e1d1c379698d3e612b.tar.gz |
Merge branch 'refs/heads/NinjaInternal' into Color
Diffstat (limited to 'js/components/ui/icon-list-basic/icon.reel/icon.js')
-rwxr-xr-x[-rw-r--r--] | js/components/ui/icon-list-basic/icon.reel/icon.js | 14 |
1 files changed, 14 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 d934e7f1..b0279207 100644..100755 --- a/js/components/ui/icon-list-basic/icon.reel/icon.js +++ b/js/components/ui/icon-list-basic/icon.reel/icon.js | |||
@@ -22,6 +22,13 @@ var Icon = exports.Icon = Montage.create(Component, { | |||
22 | this.needsDraw = true; | 22 | this.needsDraw = true; |
23 | } | 23 | } |
24 | }, | 24 | }, |
25 | |||
26 | selectedUri:{ | ||
27 | writable:true, | ||
28 | enumerable:true, | ||
29 | value:null | ||
30 | }, | ||
31 | |||
25 | metadata:{ | 32 | metadata:{ |
26 | enumerable:true, | 33 | enumerable:true, |
27 | writable:true, | 34 | writable:true, |
@@ -83,6 +90,13 @@ var Icon = exports.Icon = Montage.create(Component, { | |||
83 | if(this.icondata.creationDate){this.metadata = this.metadata + "<br />" + "Creation date: "+ this.formatTimestamp(this.icondata.creationDate);} | 90 | if(this.icondata.creationDate){this.metadata = this.metadata + "<br />" + "Creation date: "+ this.formatTimestamp(this.icondata.creationDate);} |
84 | if(this.icondata.modifiedDate){this.metadata = this.metadata + "<br />" + "Modified date: "+ this.formatTimestamp(this.icondata.modifiedDate);} | 91 | if(this.icondata.modifiedDate){this.metadata = this.metadata + "<br />" + "Modified date: "+ this.formatTimestamp(this.icondata.modifiedDate);} |
85 | 92 | ||
93 | //show default selection | ||
94 | if(this.icondata.uri === this.selectedUri){ | ||
95 | var selectedItemEvent = document.createEvent("Events"); | ||
96 | selectedItemEvent.initEvent("selectedItem", false, false); | ||
97 | selectedItemEvent.uri = this.icondata.uri; | ||
98 | this.element.dispatchEvent(selectedItemEvent); | ||
99 | } | ||
86 | } | 100 | } |
87 | }, | 101 | }, |
88 | 102 | ||