File tree Expand file tree Collapse file tree 1 file changed +16
-14
lines changed Expand file tree Collapse file tree 1 file changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -191,20 +191,22 @@ class="login button">Login →</a>
191
191
caption = (photo.caption!==null) ? photo.caption.text : '',
192
192
img = $('<img />', {
193
193
src: photo.images.thumbnail.url,
194
- alt: caption
195
- }),
196
- link = $('<a />', {
197
- href: photo.link,
198
- html: img
199
- })
200
- .hide()
201
- .delay(delay)
202
- .prependTo($("#photos"))
203
- .append($('<strong />'), {
204
- text: 'Photo by ' + photo.user.username
205
- })
206
- .wrap('<li />')
207
- .show(anim_speed);
194
+ alt: caption,
195
+ load: function(){
196
+ var link = $('<a />', {
197
+ href: photo.link,
198
+ html: this
199
+ })
200
+ .hide()
201
+ .delay(delay)
202
+ .prependTo($("#photos"))
203
+ .append($('<strong />'), {
204
+ text: 'Photo by ' + photo.user.username
205
+ })
206
+ .wrap('<li />')
207
+ .show(anim_speed);
208
+ }
209
+ });
208
210
209
211
delay += anim_speed;
210
212
}
You can’t perform that action at this time.
0 commit comments