aboutsummaryrefslogtreecommitdiff
path: root/js/components/ui/icon-list-basic/icon.reel
diff options
context:
space:
mode:
authorKris Kowal2012-07-06 11:52:06 -0700
committerKris Kowal2012-07-06 15:01:48 -0700
commit648ee61ae84216d0236e0dbc211addc13b2cfa3a (patch)
tree8f0f55557bd0c47a84e49c1977c950645d284607 /js/components/ui/icon-list-basic/icon.reel
parentaedd14b18695d031f695d27dfbd94df5614495bb (diff)
downloadninja-648ee61ae84216d0236e0dbc211addc13b2cfa3a.tar.gz
Expand tabs
Diffstat (limited to 'js/components/ui/icon-list-basic/icon.reel')
-rwxr-xr-xjs/components/ui/icon-list-basic/icon.reel/icon.js22
1 files changed, 11 insertions, 11 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 11cf3b12..d0954324 100755
--- a/js/components/ui/icon-list-basic/icon.reel/icon.js
+++ b/js/components/ui/icon-list-basic/icon.reel/icon.js
@@ -70,14 +70,14 @@ exports.Icon = Montage.create(Component, {
70 }, 70 },
71 71
72 willDraw: { 72 willDraw: {
73 enumerable: false, 73 enumerable: false,
74 value: function() { 74 value: function() {
75 75
76 } 76 }
77 }, 77 },
78 draw: { 78 draw: {
79 enumerable: false, 79 enumerable: false,
80 value: function() { 80 value: function() {
81 if(this.icondata.type === "directory"){ 81 if(this.icondata.type === "directory"){
82 this.iconImg.src = this.imgStore.img_root + this.imgStore.directory; 82 this.iconImg.src = this.imgStore.img_root + this.imgStore.directory;
83 }else{ 83 }else{
@@ -91,11 +91,11 @@ exports.Icon = Montage.create(Component, {
91 } 91 }
92 this.iconImg.src = fileImg; 92 this.iconImg.src = fileImg;
93 } 93 }
94 } 94 }
95 }, 95 },
96 didDraw: { 96 didDraw: {
97 enumerable: false, 97 enumerable: false,
98 value: function() { 98 value: function() {
99 var that = this; 99 var that = this;
100 100
101 var icon = this.iconImg; 101 var icon = this.iconImg;
@@ -131,7 +131,7 @@ exports.Icon = Montage.create(Component, {
131 selectedItemEvent.uri = this.icondata.uri; 131 selectedItemEvent.uri = this.icondata.uri;
132 this.element.dispatchEvent(selectedItemEvent); 132 this.element.dispatchEvent(selectedItemEvent);
133 } 133 }
134 } 134 }
135 }, 135 },
136 136
137 /** 137 /**
@@ -195,12 +195,12 @@ exports.Icon = Montage.create(Component, {
195 formatTimestamp:{ 195 formatTimestamp:{
196 writable:false, 196 writable:false,
197 enumerable: false, 197 enumerable: false,
198 value: function(timestamp) { 198 value: function(timestamp) {
199 var aDate = new Date(); 199 var aDate = new Date();
200 timestamp = timestamp - (aDate.getTimezoneOffset()*60*1000);//convert from GMT to local timestamp 200 timestamp = timestamp - (aDate.getTimezoneOffset()*60*1000);//convert from GMT to local timestamp
201 aDate = new Date(timestamp); 201 aDate = new Date(timestamp);
202 return aDate.toLocaleString(); 202 return aDate.toLocaleString();
203 } 203 }
204 }, 204 },
205 205
206 imgStore:{ 206 imgStore:{